Internet
-
Hello , I am new to Internet Programming in VC++. Can anyone of you out there inform me about how i can generate a form post that a browser generates when send the form post to the webserver. Thanks in advance. Regards
-
Hello , I am new to Internet Programming in VC++. Can anyone of you out there inform me about how i can generate a form post that a browser generates when send the form post to the webserver. Thanks in advance. Regards
Hi, Using Windows Sockets you are connecting to the HTTP server and then you send/receive data in the HTTP protocol. You can find all information you need in RFC 1945 "Hypertext Transfer Protocol -- HTTP/1.0" at http://www.rfc-editor.org/rfc/rfc1945.txt. I you are not experienced in RFC reading/implementing check our Ultimate TCP/IP 3.0 product at www.dundas.com. This product can help you a lot. Regards, Alex Gorev, Dundas Software.
-
Hi, Using Windows Sockets you are connecting to the HTTP server and then you send/receive data in the HTTP protocol. You can find all information you need in RFC 1945 "Hypertext Transfer Protocol -- HTTP/1.0" at http://www.rfc-editor.org/rfc/rfc1945.txt. I you are not experienced in RFC reading/implementing check our Ultimate TCP/IP 3.0 product at www.dundas.com. This product can help you a lot. Regards, Alex Gorev, Dundas Software.
Hi Alex, to add to your answer. I have noticed a common mistake most people fall in they forget to target the correct url for example if they have an in box called Lastname in an asp page called page1.asp they would send their post Request as follow using telnet connect to www.anyserver.com port 80 then they would send the following ascii lines // SNIPP POST /page1.as HTTP/1.1 Content-Length: 17 [empty_line] lastname=Alfadhly [empty_line] // SNIPP although these steps are correct since it includes the three most importent pieces of the post i.e 1) POST command and the target url plus the protocol version 2) The conent length header of the data in the request 3) the data it self e.g lastname=Alfadhly [NOTE:] I have ommited other headers such as referer and Host, and Cookies ] if they are used in the aps page Most programmers tend to forget to look at the source of the asp page and forget thaat the target should be the one identified by the ACTION parameter of the post I hope this might help
-
Hi, Using Windows Sockets you are connecting to the HTTP server and then you send/receive data in the HTTP protocol. You can find all information you need in RFC 1945 "Hypertext Transfer Protocol -- HTTP/1.0" at http://www.rfc-editor.org/rfc/rfc1945.txt. I you are not experienced in RFC reading/implementing check our Ultimate TCP/IP 3.0 product at www.dundas.com. This product can help you a lot. Regards, Alex Gorev, Dundas Software.
Hi Alex, to add to your answer. I have noticed a common mistake most people fall in they forget to target the correct url for example if they have an in box called Lastname and a submit button named Send in an asp page called page1.asp they would send their post Request as follow using telnet connect to www.anyserver.com port 80 then they would send the following ascii lines // SNIPP POST /page1.as HTTP/1.1 Content-Length: 28 [empty_line] lastname=Alfadhly&Send=Submit [empty_line] // SNIPP although these steps are correct since it includes the three most importent pieces of the post i.e 1) POST command and the target url plus the protocol version 2) The conent length header of the data in the request 3) the data it self e.g lastname=Alfadhly [NOTE:] I have ommited other headers such as referer and Host, and Cookies ] if they are used in the aps page Most programmers tend to forget to look at the source of the asp page and forget thaat the target should be the one identified by the ACTION parameter of the post I hope this might help
-
Hi, Using Windows Sockets you are connecting to the HTTP server and then you send/receive data in the HTTP protocol. You can find all information you need in RFC 1945 "Hypertext Transfer Protocol -- HTTP/1.0" at http://www.rfc-editor.org/rfc/rfc1945.txt. I you are not experienced in RFC reading/implementing check our Ultimate TCP/IP 3.0 product at www.dundas.com. This product can help you a lot. Regards, Alex Gorev, Dundas Software.
Hi Alex, to add to your answer. I have noticed a common mistake most people fall in they forget to target the correct url for example if they have an in box called Lastname and a submit button named Send in an asp page called page1.asp they would send their post Request as follow using telnet connect to www.anyserver.com port 80 then they would send the following ascii lines // SNIPP POST /page1.asp HTTP/1.1 Content-Length: 28 [empty_line] lastname=Alfadhly&Send=Submit [empty_line] // SNIPP although these steps are correct since it includes the three most importent pieces of the post i.e 1) POST command and the target url plus the protocol version 2) The conent length header of the data in the request 3) the data it self e.g lastname=Alfadhly [NOTE:] I have ommited other headers such as referer and Host, and Cookies ] if they are used in the aps page Most programmers tend to forget to look at the source of the asp page and forget thaat the target should be the one identified by the ACTION parameter of the post I hope this might help