tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Gui for viewing Apache responses from a chain of proxy servers
Date Sun, 25 Jul 2010 23:55:44 GMT
James Godrej wrote:
> Is there any GUI for viewing Apache headers which are being served by a chain 
> of Reverse Proxy Servers.
> I have a cloud which uses a few Proxy Servers in between the client and actual 
> server which has to serve the original request.
> All servers are Unix Servers.
> And if there is a problem which I do not get a clue to then to be able to post 
> them here 
> downloading and doing an ftp of those headers with all the logs ,
> loging in each time to each proxy server and Opening the browser and exporting 
> the 
> X display to some remote server each time from the chain and then observing 
> HTTP_RESPONSES and checking the request from each of those servers and then 
> posting log with configuration and response takes at least 2-3 hours to type an 
> email.
> Is there a shorter way to do so?
To pick up where Mark left off :-)
and if I understand you correctly :

A HTTP "HEAD" request (instead of a GET), has the effect that a webserver sends
back a response with only the HTTP headers (not the body) that it would send for a
"normal" response to a GET.

Unfortunately, browsers do not make it easy to send a HEAD request on purpose.

But, assuming you have a direct HTTP access to all the servers in your proxy chain, you 
could use a command-line program such as curl, wget or perl's lwp-request, to send your 
original URL request to the first proxy, and see what it answers; then to the second 
proxy, the 3rd

Example with perl's lwp-request :

# lwp-request -m HEAD -Sed
HEAD --> 302 Found
HEAD --> 200 OK
Cache-Control: private, max-age=0
Connection: close
Date: Sun, 25 Jul 2010 08:35:16 GMT
Server: gws
Content-Type: text/html; charset=ISO-8859-1
Expires: -1
Client-Date: Sun, 25 Jul 2010 08:35:16 GMT
Client-Response-Num: 1
Set-Cookie: PREF=ID=05f051ce99b41b06:TM=1280046916:LM=1280046916:S=zKP9CgLj8JoZIou0;
expires=Tue, 24-Jul-2012 08:35:16 GMT; path=/;

expires=Mon, 24-Jan-2011 08:35:16 GMT; path=/;; HttpOnly
X-XSS-Protection: 1; mode=block

lwp-request comes as a standard utility with perl.
For help, use
lwp-request -h

curl, wget and other similar tools have comparable capabilities.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message