Thanks Mark, that pretty much exactly what I was going to say!

Cheers,
Justin
Android Team @ Google

On Aug 27, 6:13 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Zack wrote:
> > I'm definitely missing  something here.  Seems like a catch 22 to me.
> > Can't setEntity w/o setContent w/o magically putting my data in the
> > InputStream which comes from the postEntity which comes from the
> > postRequest... I can't see how to put my sting variables in anywhere.
>
> Forgive me, I'm tuning in a little late to this thread...
>
> Have you tried the official docs over athttp://hc.apache.org?
>
> There's a series of examples at:
>
> http://hc.apache.org/httpcomponents-client/examples.html
>
> In particular, this example:
>
> http://tinyurl.com/2d23et
>
> shows:
>
> List <NameValuePair> nvps = new ArrayList <NameValuePair>();
>
> nvps.add(new BasicNameValuePair("IDToken1", "username"));
> nvps.add(new BasicNameValuePair("IDToken2", "password"));
>
> httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
>
> (where httpost is anHttpPostobject)
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Warescription: All titles, revisions, & ebook formats, just $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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to