Thanks for the lead Mark. I really appreciate it. I hope it gives me
some insight. So, is my assessment right in that the HttpPost/
HttpClient route is not possible for this sort of thing currently? I
see there used to be a MultipartEntity class which was removed with
the 1.0 SDK. That looks like it might have been what I needed. Anyway
thanks again.

On Mar 24, 6:17 am, Mark Murphy <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to