Hello,

You can try comething like that :

//PARAMETERS
List<BasicNameValuePair> pairs = new ArrayList<BasicNameValuePair>();
pairs.add(new BasicNameValuePair("username", ""));
pairs.add(new BasicNameValuePair("password", ""));
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(pairs);

//POST METHODE
HttpPost httppost = new HttpPost("URL_HERE");
httppost.setHeader("User-Agent", "somethinghere");
httppost.setHeader("Content-Type", "somethinghere");
httppost.setEntity(httpEntity);

//HTTP CLIENT
DefaultHttpClient httpclient = new DefaultHttpClient();

//EXECUTE CALL
HttpResponse response = httpclient.execute(httppost);

//READ RESPONSE
InputStream is = response.getEntity().getContent();

I hope it help,
Maxence

On Nov 27, 3:45 pm, "salman.geek" <[EMAIL PROTECTED]> wrote:
> Please Help me out imn waiting for an urgent reply...
>
> > > Hi to all...
> > > I want to send an Http Request to a url which will give me the images
> > > which i want to show at ma screen.In this call i will provide the
> > > image id which i want.
> > > So im having problem in creating and sending an http call and
> > > receiving the image from that call..
> > > Please help me ASAP....
>
> > > Regards....
> > > Salman Khursheed- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to