Hello,

Try checking out this link:
http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientFormLogin.java

for an example on how to do a POST using Apache HTTP Components

2011/9/13 Atif Musaddaq <atif.musad...@gmail.com>

> Hi,
>
> I would like to send username and password with SERVICE_URL. do any one
> know how to send it, I am getting username and password from prefs. here is
> my code at the moment.
>
> String SERVICE_URL = "http://10.0.2.2/php_to_json.php";;
> String s = execHttpRequest(SERVICE_URL);
> final String[] items2 = getTheTimeFromJSONString(s);
>
> --
> Atif
>
>  --
> 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




-- 
株式会社アルゴ ARGO Inc.
〒130-0012
東京都墨田区太平3-11-10
NTKオオノビル8階

ソアレス フランシスコ ( Soares Francisco )
Mail : soa...@argo.bz HP : http://www.argo.bz/
TEL:03-5619-4511 FAX:03-5619-4512

-- 
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