tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
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
etc..

Example with perl's lwp-request :

# lwp-request -m HEAD -Sed http://www.google.com
HEAD http://www.google.com --> 302 Found
HEAD http://www.google.de/ --> 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-Peer: 74.125.77.99:80
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=/; domain=.google.de
Set-Cookie:
NID=37=Ns3-pP0OPF1CYOjqI8upA3kH3yCQEypjAAUWCAN_RhFEumUk-sTqLleFTVVE5K0RxjGbbQ19171gPtNMK8LBxyQkCUmGv5wdfIhQrda3Mp1cjNQovwp6KC-6xhnjr066;


expires=Mon, 24-Jan-2011 08:35:16 GMT; path=/; domain=.google.de; 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message