Yes, it should be possible to read both GET and POST data simultaneously.

Look at $ENVS(REQUEST_METHOD) to check for GET/POST.

Even when the case is POST, you *should* be able to read the GET parameters by parsing/splitting the data from $VARS(REQUEST_URI).  I haven't actually tested it, though, but I don't see why REQUEST_URI wouldn't return the correct information.

Again, this is a case for "why would you want to do that?", but if you want to do a security check for both, this method should work.

Good luck.

At 11:52 AM 7/16/2002, you wrote:
Thanks Mark Hubbard for answer me.
But, what happend if in $ENVS exists Post and Get variables?
For Example:
<form method=post action="page.ttml?var1=1">
<input type=hidden name=var1 value=2>
</form>
 
In ASP or PHP i can get the value of all versions of var1.
ASP example:
Var1Post = request.form("var1")
Var2Get = request.querystring("var1")
then
Var1Post = 2
Var1Get = 1
 
Can i do this with TCL and Mod_Tcl ?
 
----- Original Message -----
From: Mark Hubbard
To: Damian Bacalov
Sent: Tuesday, July 16, 2002 12:15 PM
Subject: Re: GET and POST variables

You can do an hgetvars and then check the value of $ENVS(REQUEST_METHOD) to see if the HTTP method was GET or POST.  That can be used in your script logic.  ENVS is actually request::ENVS (something which is apparently not documented).
--
Mark Hubbard: [EMAIL PROTECTED]
Microsoft Certified Professional
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to