Hello daniweb experts,

I would like to ask some help or some idea on how can i send data via post to my webpages if there is session....the webpage(http://mysite.com/adduser.php) is checking if the login user is already have session. I want my android apps can send data to the adduser.php,but it always failed,when I send data to the url adduser.php. I know the reason for this,it is the session...Is it possible to put session on android apps after it successfully loging in,so that I can send data the adduser.php ?

More input will be greatly appreciated.

Thank you in advance.

Recommended Answers

URL url=new URL("(http://mysite.com/adduser.php?username=alice&password=bob");

HttpUrlConnection con=(HttpUrlConnection)url.getConnection();

be sure to encode the url parameters using UrlEncoder.encode(..)

Jump to Post

All 3 Replies

This could have been well explained wth a fragment program.

@hasting, what do you mean ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.