Client and Server basic HTTP commands help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jayhunters14
    New Member
    • Mar 2007
    • 7

    #1

    Client and Server basic HTTP commands help needed

    Hi everyone,

    i am an undergrad in physics.my thesis is about GPRS.i have a wireless module that sets up a connection to the internet. when i connect to the web server it can communicate using http protocols.my problem is i have no back ground on http protocols(GET,P OST)..can anyone give me a hand regarding this protocols? a client POST and how the server handles this POST by the client would be helpful.can someone guide me? all i need is to set up a webserver that has a single
    db table with about ten entities. and the value i pass from the client is stored to the table.i dont know how to accomplish this using just post method or get method.hope someone can help me
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    GET should be used when you are querying a server while POST is used to post data to a server. POST data is sent after the HTTP headers and looks like this:
    item1=data1&ite m2=data2&item3= data3

    So a full HTTP header would look like this:
    HTTP /1.1 POST
    Content-Type=applicatio n/x-www-form-urlencoded
    Content-Length=46 (number of characters)
    POSTDATA=item1= data1&item2=dat a2&item3=data3

    The actual RFC spec is here.

    And after all that, I think you said you already post data so you are wondering how to handle the data once it gets to the server? If so, you need a programming language server side to handle that and you would need to determine which language you will use and ask on that board. What you are looking for is CGI programming.

    Comment

    • jayhunters14
      New Member
      • Mar 2007
      • 7

      #3
      sorry for getting back so late.we have a break at our school.thank you. it gave me a better idea.i will read on cgi.thank you very much.

      Comment

      Working...