RE: Getting the full cgi parameter string...

2003-10-27 Thread Farrington, Ryan
Title: RE: Getting the full cgi parameter string...





Seth,
 Do you need the get or the post? If you want to output all the variables that become available when you run a script in cgi just parse the %ENV hash that should give you all the info you need.

-Original Message-
From: KING,SETH (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 27, 2003 12:19 PM
To: '[EMAIL PROTECTED]'
Subject: Getting the full cgi parameter string...


I need to retrieve the full parameter string passed to a cgi to then do a
URL-decoding on it. Pls help!!


Seth King
Programmer Analyst
Hewlett-Packard Boise Site
The Network Group
396-3645

___
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs





RE: Getting the full cgi parameter string...

2003-10-27 Thread Adym Lincoln
snip
: I need to retrieve the full parameter string passed to a cgi to then do a
: URL-decoding on it. Pls help!!
: 
: Seth King
: Programmer Analyst
: Hewlett-Packard Boise Site
: The Network Group
: 396-3645
/snip

Seth,

Depending on how the string was posted, one of these should do it...

  if ($ENV{'REQUEST_METHOD'} eq GET) {
$argsCGI = $ENV{'QUERY_STRING'};
  }  #  end if()
  
  elsif ($ENV{'REQUEST_METHOD'} eq POST) {
read(STDIN,$argsCGI,$ENV{'CONTENT_LENGTH'});
  }  #  end elsif()


Adym Lincoln
Edgewater Technology, Inc.
[EMAIL PROTECTED]
.
Can we fix it?  Yes we can!
.

: -Original Message-
: From: KING,SETH (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]
: Sent: Monday, October 27, 2003 1:19 PM
: To: [EMAIL PROTECTED]
: Subject: Getting the full cgi parameter string...
: 
: 
: ___
: ActivePerl mailing list
: [EMAIL PROTECTED]
: To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

This e-mail and any files transmitted with it are confidential and are intended solely 
for the use of the individual or entity to whom they are addressed.  This 
communication may contain information that is protected from disclosure by applicable 
law.  If you are not the intended recipient, or the employee or agent responsible for 
delivering this communication to the intended recipient, be advised that you have 
received this e-mail in error and any use, dissemination, forwarding, printing or 
copying of this e-mail is strictly prohibited.  If you believe that you have received 
this e-mail in error, please immediately notify Edgewater Technology by telephone at 
(781) 246-3343 and delete the communication from all e-mail files.





___
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs