Jump to content
  • Advertisement

Archived

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

Draigan

POST/GET through sockets

This topic is 5403 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!