Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GET and POST methods in CGI

Status
Not open for further replies.

manishrathi

Programmer
Feb 26, 2009
6
US

When a web server(apache on my local m/c), receives this request, it reads the HTTP headers and passes content body of message to CGI.
In a request, when do we send any content ? we just type the web address and send the request. Does it refer to form in which we fill out the info and send it as request. That info is considered as content body ?
When I send a request for a website, I dont mention GET or POST, then what is that request considered as ? In above request, will it be GET or POST as I have mentioned nothing in there ? How is it decided, whether its GET ot POST with such an ordinary request ?
 
In the absense of a method, the request will be GET. GET can be form data or query string data and is limited to what can be sent. POST can send large amounts of various data. A google search should find you many detailed explanations of GET and POST and when to use one or the other.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top