[3537] in WWW Security List Archive
Re: POST
daemon@ATHENA.MIT.EDU (Brian W. Spolarich)
Thu Nov 14 12:31:05 1996
Date: Thu, 14 Nov 1996 10:02:23 -0500 (EST)
From: "Brian W. Spolarich" <briansp@ans.net>
To: Andrea Di Fabio <fabio@cs.odu.edu>
cc: www-security@ns2.rutgers.edu
In-Reply-To: <Pine.SOL.3.95.961113134502.21021A-100000@defiant.cs.odu.edu>
Errors-To: owner-www-security@ns2.rutgers.edu
On Wed, 13 Nov 1996, Andrea Di Fabio wrote:
| Does anyone knows if there is a way to pass a POST
| from the web browser location line, the same way you can pass a variable?
|
| I.e. http://www.host.net/cgi-scritp?var=some
|
| and make that a post instead of a get?
By definition the GET method supplies CGI script arguments on the
request line. By definition, the POST method supplies CGI script
arguments (or other data) via STDIN. You can't do POST via URL?data
request, as the client won't do a POST unless its instructed to via a form
tag or whatever.
My suggestion would be to use a standard CGI parsing library (CGI.pm for
Perl5, for example) which transparently handles the request method, and
use both. This is pretty typical of a lot of CGI applications: For some
things you give the user a form input button with METHOD=POST, and for
others you give them highlighted text strings with URLs that imply the GET
method. In most cases both are equivalent.
-brian
--
Brian W. Spolarich - ANS Systems Development - briansp@ans.net - 313-677-7311
The net has fall'n upon me! I shall perish...