Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 :)

share|improve this question

2 Answers 2

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 />";
}
share|improve this answer
    
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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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