HTTP Methods POST AND GET "DATA"

This is a discussion on HTTP Methods POST AND GET "DATA" within the C Programming forums, part of the General Programming Boards category; Hi All I have to send http request to a web-server for a mobile application, i am new to HTTP. ...

  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
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,651

  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
    395
    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
    Katy, Texas
    Posts
    2,309
    There's info on this board. Been there, done that, posted here.

    Todd
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21