[PHP] To Capture HTTP Headers

2006-05-10 Thread Kaushal Shriyan
I have put the below in test.php I am getting the below information which is not formatted array(5) { ["RSP_COOKIE"]=> string(28) "type=1&name=YW1pdA==&stype=0" ["RSP_DAEMON"]=> string(32) "9d07e725d2294db468407bb19badd8c2" ["MC_CMP_ESK"]=> string(8) "NonSense" ["SNS_AA"]=> string(21) "asrc=2&

Re: [PHP] To capture Http Headers

2006-05-10 Thread Stut
Please reply to the list and not just directly to me. Kaushal Shriyan wrote: Thanks Stut I have put the below script in test.php I am getting the below information which is not formatted array(5) { ["RSP_COOKIE"]=> string(28) "type=1&name=YW1pdA==&stype=0" ["RSP_DAEMON"]=> string(32) "9d07

Re: [PHP] To capture Http Headers

2006-05-09 Thread Richard Lynch
Wild Guess: You're on your own for adding in the HTML and Javascript crap. On Tue, May 9, 2006 9:36 am, Kaushal Shriyan wrote: > Hi ALL > > I have a sample cgi-script > > #!/usr/bin/perl > > use CGI; > > $cgi = new CGI; > > for $key ( $cgi->param() ) { > $input{$key} = $cgi->param($ke

Re: [PHP] To capture Http Headers

2006-05-09 Thread Jochem Maas
Kaushal Shriyan wrote: On 5/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Thanks Jochem Maas Thanks a Lot so it would look like below if i put in test.php echo ""; ksort($_GET); foreach ($_GET as $key => $val) { echo "{$key}: {$val}"; } echo ""; yes if you put that in test.php t

Re: [PHP] To capture Http Headers

2006-05-09 Thread Jochem Maas
Kaushal Shriyan wrote: Hi ALL I have a sample cgi-script #!/usr/bin/perl use CGI; $cgi = new CGI; for $key ( $cgi->param() ) { $input{$key} = $cgi->param($key); } check out the superglobals $_POST, $_GET and $_REQUEST: print qq{Content-type: text/html this header is outputte

Re: [PHP] To capture Http Headers

2006-05-09 Thread Stut
Kaushal Shriyan wrote: Hi ALL I have a sample cgi-script Can any one please help me in converting this to a php script Which would be of great help Try it yourself. If you have problems check the manual (http://php.net/docs), STFW (http://www.google.com/) and if you can't find an ans

[PHP] To capture Http Headers

2006-05-09 Thread Kaushal Shriyan
Hi ALL I have a sample cgi-script #!/usr/bin/perl use CGI; $cgi = new CGI; for $key ( $cgi->param() ) { $input{$key} = $cgi->param($key); } print qq{Content-type: text/html }; print qq{addHeader()}; print qq{}; print qq{KeyValue}; foreach $key (sort (keys %ENV)) { print "$