0

Hi friends, recently i am learning php with your help and online tutorials. I googled for anatomy of GET and POST but didnt find satisfaction.

So what is working behind GET and POST Methods ? How they work between client(browser) and Server ?

Thanx.

3
Contributors
3
Replies
35
Views
4 Years
Discussion Span
Last Post by Rahul47
0

A simple tutorial:
http://www.tutorialspoint.com/php/php_get_post.htm

Noce explanation on W3schools:
http://www.w3schools.com/tags/ref_httpmethods.asp

A technical specification as a part of of the HTTP protocol:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

And all this leads to:
http://en.wikipedia.org/wiki/Representational_state_transfer#About
and
http://www.ibm.com/developerworks/webservices/library/ws-restful/

In simplified terms: use GET to retrieve data from the server, use POST to send data to the server, when you are familiar with the thing, read about the REST (the last two links). I am not expert on the later so maybe others will tell more.

Edited by broj1

0

Anatomy of an HTTP GET request
The path to the resource, and any parameters added to the URL are all included on the request line".

Anatomy of an HTTP POST request
HTTP POST requests are designed to be used by the browser to make complex requests on the server. For instance, if a user has just completed a long form, the application might want all of the form's data to be added to a database. The data to be sent back to the server
is known as the "message body" or "payload" and can be quite large.

0

@crescendo: I am aware of working of GET and POST methods. I wanted to learn about how they work behind the scene, and transfer data to $_GET and $_POST associative variables.

Appreciate your help.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.