HTTP help

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

    HTTP help

    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
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Apache should pretty much deal with the GET/POST protocols for you. How the data appears in the receiving script is a function of the language of the receiving script.

    That is when a GET or POST is performed through an HTML FORM you supply a target page. This page should be written in some server side scripting language (PHP, Perl, Python, ASP to name a few options). How the data appears in the script is a function of the langauge.

    For instance in PHP GET data appears in the super global array $_GET, and POST data appears in the supper global array $_POST.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      A more concrete way to examine the HTTP protocol would be to download Wireshark, and capture an HTTP POST packet to a server.

      Originally posted by Banfa
      Apache should pretty much deal with the GET/POST protocols for you. How the data appears in the receiving script is a function of the language of the receiving script.

      That is when a GET or POST is performed through an HTML FORM you supply a target page. This page should be written in some server side scripting language (PHP, Perl, Python, ASP to name a few options). How the data appears in the script is a function of the langauge.

      For instance in PHP GET data appears in the super global array $_GET, and POST data appears in the supper global array $_POST.

      Comment

      Working...