Ok.. have you looked at UrlEncodedFormEntity ?
Sincerely,
Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://bgies.com http://nocrappyapps.com
http://bistroblurb.com http://forcethetruth.com
http://ihottonight.com
-----------------------------------------------------------------------
Everything in moderation, including abstinence (paraphrased)
Every person is born with a brain... Those who use it well are the successful
happy ones - Brad Gies
Adversity can make or break you... It's your choice... Choose wisely - Brad Gies
Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead
On 07/01/2011 5:32 PM, John Lussmyer wrote:
Except that you can't setEntity() on an HttpGet - which is what I need
to use.
On Fri, Jan 7, 2011 at 5:27 PM, Brad Gies <[email protected]
<mailto:[email protected]>> wrote:
I'm not 100% sure I understand the question either.... but just in
case...this does it for a Post... and switching to a Get will do
the same thing.
HttpPost httpPost = new HttpPost(urlString);
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(new BasicNameValuePair("akey", "avalue"));
httpPost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
If you check the Request on your server after you send it.. you
will see the normal "?key=value" strings.
--
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
--
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