Sending data to a cgi script?
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!
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
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
Popular Topics
Advertisement