nEx.Software wrote:
> I am beating my head against a wall trying to figure out why I cannot
> get Authenticated on my server whilst using HttpUrlConnection. I need
> to post a file in a post method and it seems I cannot do so with the
> DefaultHttpClient and a regular HttpPost (unless I am completely
> missing something?). I can get DefaultHttpClient to authenticate just
> fine using setCredentials() but the same doesn't exist for
> HttpUrlConnection so I try to set through setRequestProperty:
> conn.setRequestProperty("Authorization", "Basic " +
> Base64EncodedUserNamePassword); to no avail. Can anyone offer some
> insight? Thanks in advance.I don't have a direct answer, but JTwitter uses HttpUrlConnection, uses the same general technique you're describing, and it works on Android. Take a peek at their code and perhaps you'll see something that helps. http://www.winterwell.com/software/jtwitter.php -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

