简体   繁体   English

Android:发布到受密码保护的服务器

[英]Android: post to a password protected server

I am trying to send information from my Android device to my php server. 我正在尝试将信息从我的Android设备发送到我的php服务器。 I followed this tutorial ( http://www.codeofaninja.com/2013/04/android-http-client.html ), but then realized there is nowhere to specify my useID and password to log into the server. 我遵循了本教程( http://www.codeofaninja.com/2013/04/android-http-client.html ),但是随后意识到没有地方可以指定我的useID和密码来登录服务器。 a lot of search but could not get anywhere. 很多搜索,但找不到任何地方。 I am new to both Android and Apache. 我是Android和Apache的新手。 Please advice, thanks. 请指教,谢谢。

well, i have to learn to ask the right question or enter the right words to search. 好吧,我必须学会提出正确的问题或输入正确的词进行搜索。 i finally found with this post and got my answer. 我终于找到了这篇文章,并得到了我的答案。 Android HttpClient authentication always returns 401 code Android HttpClient身份验证始终返回401代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM