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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to