Thread: HTTP Methods POST AND GET "DATA"

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    22

    Exclamation HTTP Methods POST AND GET "DATA"

    Hi All

    I have to send http request to a web-server for a mobile application, i am new to HTTP.

    Can anybody explain HTTP POST and GET methods.....

    While Sending the data through GET and POST method using C, is there any particular format defined in protocol for the "Data Packet"(buffer)?


    Thanks in Advance
    Bhupesh

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675

  3. #3
    Registered User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    217
    You dont send data with "GET" only with "POST". It would look something like this:

    "POST /somecgi.cgi HTTP/1.1\n"
    "Host: www.thehost.com\n"
    "Content-Length: 4\n" (4 is the length of "TEST")
    "\n"
    "TEST"

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    396
    Can anybody explain HTTP POST and GET methods.....
    I don't think this is the right board for this question but here you go: http://www.jmarshall.com/easy/http/
    This is a quick & nice tutorial.
    If you need the complete specification, check the RFC (google http rfc).

  5. #5
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    There's info on this board. Been there, done that, posted here.

    Todd
    Mainframe assembler programmer by trade. C coder when I can.

Popular pages Recent additions subscribe to a feed