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 at http://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 an HttpPost object)

-- 
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 [email protected]
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