Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Internet

Internet

Scheduled Pinned Locked Moved C / C++ / MFC
c++
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alpesh Makwana
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • A Alpesh Makwana

      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

      A Offline
      A Offline
      Alex Gorev
      wrote on last edited by
      #2

      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.

      L 3 Replies Last reply
      0
      • A Alex Gorev

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A Alex Gorev

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • A Alex Gorev

            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.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups