0

How do I make apache echo the original request in the response body? Is CGI needed?

UPDATE:

Nevermind, I wrote a simple web server in Perl :)

1

If you are using php then you can use a snippet like this somewhere in your page

foreach($_SERVER as $k=>$v)  {
    print $k.': '.$v."<br />";
}
  • Unfortunately, I needed the request exactly as it was sent, and I'm not sure foreach on hashtable works that way :) – Alexei Averchenko Feb 6 '11 at 0:02
0

You'd most likely have to use some kind of scripting language like PHP to accept the request and echo out the headers and content of the request.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.