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 <rbg...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to