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: post to a password protected server
Domanda
I am trying to send information from my Android device to my php server. 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. a lot of search but could not get anywhere. I am new to both Android and Apache. Please advice, thanks.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow