COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button
C++ LANGUAGE PASSING INFORMATION USING GET METHOD
Passing Information Using GET Method
The GET method sends the encoded user information appended to
the page request. The page and the encoded information are
separated by the ‘?’ character as follows:
http://www.test.com/cgi-bin/cpp.cgi?key1=value1&key2=value2
The GET method is the default method to pass information from
browser to web server and it produces a long string that appears
in your browser's Location:box. Never use the GET method if you
have password or other sensitive information to pass to the server.
The GET method has size limitation and you can pass up to 1024
characters in a request string.
When using GET method, information is passed using QUERY_STRING
http header and will be accessible in your CGI Program through
QUERY_STRING environment variable.
You can pass information by simply concatenating key and value
pairs along with any URL or you can use HTML <FORM> tags
to pass information using GET method.
No comments:
Post a Comment