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. How to send data with method POST in cgi ???

How to send data with method POST in cgi ???

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelptutorialquestion
5 Posts 3 Posters 16 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.
  • K Offline
    K Offline
    Kobe
    wrote on last edited by
    #1

    Hello I implement my own web browser. I have to know how to send data with method POST ??? because of method GET I can check the attribute of user and attach it with URL such as http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post &group=earthweb.cgi.general&utag= but in method POST URL doesn't show any infomation I don't know what to do Please help me ..... ( I'm sorry to post unrelate VC++ ) Thank you

    G R 3 Replies Last reply
    0
    • K Kobe

      Hello I implement my own web browser. I have to know how to send data with method POST ??? because of method GET I can check the attribute of user and attach it with URL such as http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post &group=earthweb.cgi.general&utag= but in method POST URL doesn't show any infomation I don't know what to do Please help me ..... ( I'm sorry to post unrelate VC++ ) Thank you

      G Offline
      G Offline
      Ghazi
      wrote on last edited by
      #2

      Post Method depends on the reques header "Content-Length:" to determine when is the data finished. here is a telnet session to demonstrate how you may try it (After getting connected e.g. 127.0.0.1 port 80 ================== The original message was: Hello
      I implement my own web browser. I have to know how to send
      data with method POST ???
      because of method GET I can check the attribute of user and
      attach it with URL

      such as
      http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post
      &group=earthweb.cgi.general&utag=

      but in method POST URL doesn't show any infomation
      I don't know what to do

      Please help me ..... ( I'm sorry to post unrelate VC++ )

      Thank you

      1 Reply Last reply
      0
      • K Kobe

        Hello I implement my own web browser. I have to know how to send data with method POST ??? because of method GET I can check the attribute of user and attach it with URL such as http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post &group=earthweb.cgi.general&utag= but in method POST URL doesn't show any infomation I don't know what to do Please help me ..... ( I'm sorry to post unrelate VC++ ) Thank you

        G Offline
        G Offline
        Ghazi
        wrote on last edited by
        #3

        Post Method depends on the request header "Content-Length:" to determine when is the data finished. here is a telnet session to demonstrate how you may try it (After getting connected e.g. 127.0.0.1 port 80 POST /testDirectory/Form.asp HTTP/1.0 HOST: MyComputer and so on Content-Length: (this will be the number of characters you are sending in the data portion ) The Data which is the what usually follows the question mark (Note you don't need the question mark any more) HTH Regards Ghazi Wadi Dundas Software ================== The original message was: Hello
        I implement my own web browser. I have to know how to send
        data with method POST ???
        because of method GET I can check the attribute of user and
        attach it with URL

        such as
        http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post
        &group=earthweb.cgi.general&utag=

        but in method POST URL doesn't show any infomation
        I don't know what to do

        Please help me ..... ( I'm sorry to post unrelate VC++ )

        Thank you

        K 1 Reply Last reply
        0
        • G Ghazi

          Post Method depends on the request header "Content-Length:" to determine when is the data finished. here is a telnet session to demonstrate how you may try it (After getting connected e.g. 127.0.0.1 port 80 POST /testDirectory/Form.asp HTTP/1.0 HOST: MyComputer and so on Content-Length: (this will be the number of characters you are sending in the data portion ) The Data which is the what usually follows the question mark (Note you don't need the question mark any more) HTH Regards Ghazi Wadi Dundas Software ================== The original message was: Hello
          I implement my own web browser. I have to know how to send
          data with method POST ???
          because of method GET I can check the attribute of user and
          attach it with URL

          such as
          http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post
          &group=earthweb.cgi.general&utag=

          but in method POST URL doesn't show any infomation
          I don't know what to do

          Please help me ..... ( I'm sorry to post unrelate VC++ )

          Thank you

          K Offline
          K Offline
          Kobe
          wrote on last edited by
          #4

          Hello Ghazi Would you mind give me an example please .... cos I'm very new in CGI. Thank you very much

          1 Reply Last reply
          0
          • K Kobe

            Hello I implement my own web browser. I have to know how to send data with method POST ??? because of method GET I can check the attribute of user and attach it with URL such as http://discussions.earthweb.com/cgi-bin/dnewsweb?cmd=post &group=earthweb.cgi.general&utag= but in method POST URL doesn't show any infomation I don't know what to do Please help me ..... ( I'm sorry to post unrelate VC++ ) Thank you

            R Offline
            R Offline
            RAJIV
            wrote on last edited by
            #5

            The POST messages are sent by the Web Server as part of the applications environment variables. So you would use routines like getenv to retrieve these variables. Rajiv

            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