Posting message and parsing response problem

I have a few problems/questions about posting a message to a server.  Basically i wanted to post the below infomation to the sms2email server via a bean/servlet.  The info is posted to a php page, when submitted, another page is opened giving a server response.  I also am required to keep this operation hidden or at least discrete from the user.  Is there any way to do this operation behind the scenes ?

http://www.sms2email.com/sms/postmsg.php?to_num=447778123456&
message=test+message+ok&flash=1&username=username&password=password

Server Response Codes - on html page e.g AQSMS-NOAUTHDETAILS

I would be grateful for any help - as i am totally lost!

bob
bob_jones12Asked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
InputStream in = new URL("http://www.sms2email.com/sms/postmsg.php?to_num=447778123456&
message=test+message+ok&flash=1&username=username&password=password").openStream();

You can then use the stream to read the response.



0
All Courses

From novice to tech pro — start learning today.