Archived

This topic is now archived and is closed to further replies.

Draigan

POST/GET through sockets

Recommended Posts

I understand the basics of sockets in creating a client application and connecting to a server. However now I need to be able to POST some data to a specific webpage on a server... eg: POST to http://www.myexsite.com/page1.asp What do I have to do to connect to this page to send? How do I post to this page? Cheers and thanks

Share this post


Link to post
Share on other sites
You''ll want to look at the HTTP RFC and just dig into the request / response communication. Here''s some simple Java code to explain what you need to send...

http://javaalmanac.com/egs/java.net/PostSocket.html?l=new

Share this post


Link to post
Share on other sites