How to add parameters to a HTTP GET request in Android?

Posted by groomsy on Stack Overflow See other posts from Stack Overflow or by groomsy
Published on 2010-06-02T15:50:03Z Indexed on 2010/06/02 15:54 UTC
Read the original article Hit count: 175

Filed under:
|
|

I have a HTTP GET request that I am attempting to send. I tried adding the parameters to this request by first creating a BasicHttpParams object and adding the parameters to that object, then calling setParams( basicHttpParms ) on my HttpGet object. This method fails. But if I manually add my parameters to my URL (i.e. append '?param1=value1&param2=value2') it succeeds.

I know I'm missing something here and any help would be greatly appreciated.

Thanks in advance,

groomsy

© Stack Overflow or respective owner

Related posts about android

Related posts about http