Here one of my codes :
PostMethod post = new
PostMethod(ServerConnection.serverURL+ "mySkreen/Login");
//PostMethod post = new
PostMethod("http://www.google.fr");
post.addParameter("user", login);
post.addParameter("pass", password);
HttpClient client = new HttpClient();
client.executeMethod(post);
InputStream i = new
InputSource(post.getResponseBodyAsStream());
You have to use the following imports :
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.PostMethod;
Then your inputstream i is ready for parsing.
Bye !
On Jul 11, 11:59 am, AnuR <[EMAIL PROTECTED]> wrote:
> Hi, I have a login page to login to a site they provide XML and SOAP
> apis for subitting the authetivcting data.
> How can i login to a web site from my android application.
>
> say I m creating an application in which i want to login to a site,
> say orkut or any shopping site. how can i submit the userid and
> password to that site and validate it...
>
> thanks and regards
>
> ANUR
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---