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 ?php var_dump($_REQUEST); var_dump($_ENV); ? I am getting the below information which is not formatted array(5) { [RSP_COOKIE]= string(28)

[PHP] To Capture HTTP Headers

2006-05-10 Thread Kaushal Shriyan
I have put the below in test.php ?php var_dump($_REQUEST); var_dump($_ENV); ? I am getting the below information which is not formatted array(5) { [RSP_COOKIE]= string(28) type=1name=YW1pdA==stype=0 [RSP_DAEMON]= string(32) 9d07e725d2294db468407bb19badd8c2 [MC_CMP_ESK]= string(8) NonSense

[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 htmlheadscript type=text/javascript src=/domain.js/script/headbody }; print qq{script

Re: [PHP] To capture Http Headers

2006-05-09 Thread Stut
Kaushal Shriyan wrote: Hi ALL I have a sample cgi-script snip perl 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

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: ?php var_dump($_POST, $_GET, $_REQUEST); ? print

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 ?php var_dump($_POST, $_GET, $_REQUEST); ? echo ul; ksort($_GET); foreach ($_GET as $key = $val) { echo li{$key}: {$val}/li; }

Re: [PHP] To capture Http Headers

2006-05-09 Thread Richard Lynch
Wild Guess: ?php var_dump($_REQUEST); var_dump($_ENV); ? 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() ) {