🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Sending data to a cgi script?

Started by
0 comments, last by Peter Svensson 23 years, 5 months ago
Hi there! How do i do when i want to send data using winsock to a php script (cgi script) on a website. For example: Let say there is a php-script on http://www.myserver.com/my.php then i do a connect to www.myserver.com on port 80 but how do i do the send() command? if i would send it in a webbrowser the command would look like http://www.myserver.com/my.php?value=hello world // Cheers!
Advertisement
AFAIK the basics of the HTTP protocol are that you send a line

GET filename HTTP/1.0 (or whatever version you''re using)

and then the server starts sending. There have to be some extensions for cookies and stuff like that, though I don''t think you''re going to need them for that.

For a detailed description search through the RFCs (Request For Comment). I think some of it is in RFC 822, but there have to be some newer extensions to it (I think).

cu,
Prefect
Widelands - laid back, free software strategy

This topic is closed to new replies.

Advertisement