You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Taylor <rt...@mulework.com> on 2004/02/06 19:44:36 UTC
[OT] Examining Response Headers
Sorry for the OT post, but Googling and searching the mailing list archives are not producing much.
I may not be asking the right question though.
Anyhow, I need a tool (free) to examine the request and response headers.
Any suggestions?
robert
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Examining Response Headers
Posted by David Erickson <de...@cmcflex.com>.
Filters + Eclipse + Debug?
-David
----- Original Message -----
From: "Robert Taylor" <rt...@mulework.com>
To: <st...@jakarta.apache.org>
Sent: Friday, February 06, 2004 11:44 AM
Subject: [OT] Examining Response Headers
> Sorry for the OT post, but Googling and searching the mailing list
archives are not producing much.
> I may not be asking the right question though.
>
> Anyhow, I need a tool (free) to examine the request and response headers.
>
> Any suggestions?
>
> robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: [OT] Examining Response Headers
Posted by Robert Taylor <rt...@mulework.com>.
Thanks to all who responded.
Richard, the TcpTunnelGui looks like what I want.
I'll check it out.
Thanks again.
robert
> -----Original Message-----
> From: Richard Yee [mailto:ryee86@yahoo.com]
> Sent: Friday, February 06, 2004 5:01 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Examining Response Headers
>
>
> Robert,
> You can use the org.apache.soap.util.net.TcpTunnelGui
> tool to monitor your request and response messages. It
> comes in the Jakarta SOAP distribution. It acts like a
> proxy. You will need to run it using something like
> java org.apache.soap.util.net.TcpTunnelGui 8888
> server_host_name 80
>
> where 8888 is the port the tool listens on.
> server_host_name is your app server name
> 80 is the port your server listens on.
>
> You then need to configure your browser to use 8888
> and localhost to proxy.
>
> Regards,
>
> Richard
>
> --- Robert Taylor <rt...@mulework.com> wrote:
> > Sorry for the OT post, but Googling and searching
> > the mailing list archives are not producing much.
> > I may not be asking the right question though.
> >
> > Anyhow, I need a tool (free) to examine the request
> > and response headers.
> >
> > Any suggestions?
> >
> > robert
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Examining Response Headers
Posted by Richard Yee <ry...@yahoo.com>.
Robert,
You can use the org.apache.soap.util.net.TcpTunnelGui
tool to monitor your request and response messages. It
comes in the Jakarta SOAP distribution. It acts like a
proxy. You will need to run it using something like
java org.apache.soap.util.net.TcpTunnelGui 8888
server_host_name 80
where 8888 is the port the tool listens on.
server_host_name is your app server name
80 is the port your server listens on.
You then need to configure your browser to use 8888
and localhost to proxy.
Regards,
Richard
--- Robert Taylor <rt...@mulework.com> wrote:
> Sorry for the OT post, but Googling and searching
> the mailing list archives are not producing much.
> I may not be asking the right question though.
>
> Anyhow, I need a tool (free) to examine the request
> and response headers.
>
> Any suggestions?
>
> robert
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Examining Response Headers
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Allow me to show off my neat request debugger method then, it's what I
use for logging the stuff. I have it in my base action class and switch
it on or off by the logger level. But you could put it in a JSP instead
(with HTML). Specify if you want to see the request params, headers or
attributes, and if you want plain text or HTML.
/**
* Extracts all request properties and values from request and puts
* them in
* an UL for display or in plain text
*
* @param request the HTTP Request
* @param doParams enumerate the request parameters or attributes
* @param inHtml compile with HTML tags or not
* @return a String containing each param name-value pair, in an
>UL<
*/
public static synchronized String debugRequest(HttpServletRequest
request,
int doWhat,
boolean inHtml)
{
StringBuffer temp = new StringBuffer("\n");
String temp2, temp3 = "", sepBegin, sepEnd;
Enumeration enums = null;
Object obj3 = null;
int x;
if (inHtml)
{
sepBegin = "<li>";
sepEnd = "</li>";
}
else
{
sepBegin = "";
sepEnd = "\n";
}
if (inHtml) temp.append("<ul>" + sepBegin);
switch (doWhat)
{
case SHOW_ATTRS:
enums = request.getAttributeNames();
temp.append("REQUEST ATTRIBUTES");
break;
case SHOW_HDRS:
enums = request.getHeaderNames();
temp.append("REQUEST HEADERS");
break;
case SHOW_PARAMS:
default:
enums = request.getParameterNames();
temp.append("REQUEST PARAMS");
break;
}
if (inHtml) temp.append(sepEnd);
for (x = 0; enums.hasMoreElements(); x++)
{
temp2 = (String) enums.nextElement();
switch (doWhat)
{
case SHOW_ATTRS:
obj3 = request.getAttribute(temp2);
break;
case SHOW_HDRS:
obj3 = request.getHeader(temp2);
break;
case SHOW_PARAMS:
default:
obj3 = request.getParameter(temp2);
break;
}
if (obj3 != null)
temp3 = obj3.toString();
else
temp3 = "" + obj3;
temp.append(sepBegin + temp2 + "==" + temp3 + sepEnd);
}
if (inHtml) temp.append(sepBegin);
temp.append("\nTOTAL: " + x);
if (inHtml) temp.append(sepEnd + "</ul>");
return temp.toString();
}
/**
* To specify to debugRequest() to display request
* parameters.
*/
public static final int SHOW_PARAMS = 0;
/**
* To specify to debugRequest() to display request
* attributes.
*/
public static final int SHOW_ATTRS = 1;
/**
* To specify to debugRequest() to display request
* headers
*/
public static final int SHOW_HDRS = 2;
On 02/07/2004 04:00 PM Robert Taylor wrote:
> Adam, thanks. I did that. The problem is that I need to see request and
> response headers from different browsers.
>
> robert
>
>
>>-----Original Message-----
>>From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com]
>>Sent: Saturday, February 07, 2004 5:59 AM
>>To: Struts Users Mailing List
>>Subject: Re: [OT] Examining Response Headers
>>
>>
>>here's my suggestion: Firebird or Mozilla browser with LiveHttpHeaders
>>extension.
>>
>>On 02/07/2004 12:35 AM Mike Duffy wrote:
>>
>>>Robert,
>>>
>>>DevProxy is a great program for monitoring the request and
>>
>>response headers:
>>
>>>http://www.widgetbuilders.com/
>>>
>>>I recently did some socket programming. DevProxy was an
>>
>>invaluable tool. You can see exactly
>>
>>>what flows through the socket between browser and host. Very
>>
>>good GUI interface.
>>
>>>Mike
>>>
>>>
>>>--- Robert Taylor <rt...@mulework.com> wrote:
>>>
>>>
>>>>Sorry for the OT post, but Googling and searching the mailing
>>
>>list archives are not producing
>>
>>>>much.
>>>>I may not be asking the right question though.
>>>>
>>>>Anyhow, I need a tool (free) to examine the request and
>>
>>response headers.
>>
>>>>Any suggestions?
>>>>
>>>>robert
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>Yahoo! Finance: Get your refund fast by filing online.
>>>http://taxes.yahoo.com/filing.html
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>--
>>struts 1.1 + tomcat 5.0.16 + java 1.4.2
>>Linux 2.4.20 Debian
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: [OT] Examining Response Headers
Posted by Robert Taylor <rt...@mulework.com>.
Adam, thanks. I did that. The problem is that I need to see request and
response headers from different browsers.
robert
> -----Original Message-----
> From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com]
> Sent: Saturday, February 07, 2004 5:59 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] Examining Response Headers
>
>
> here's my suggestion: Firebird or Mozilla browser with LiveHttpHeaders
> extension.
>
> On 02/07/2004 12:35 AM Mike Duffy wrote:
> > Robert,
> >
> > DevProxy is a great program for monitoring the request and
> response headers:
> >
> > http://www.widgetbuilders.com/
> >
> > I recently did some socket programming. DevProxy was an
> invaluable tool. You can see exactly
> > what flows through the socket between browser and host. Very
> good GUI interface.
> >
> > Mike
> >
> >
> > --- Robert Taylor <rt...@mulework.com> wrote:
> >
> >>Sorry for the OT post, but Googling and searching the mailing
> list archives are not producing
> >>much.
> >>I may not be asking the right question though.
> >>
> >>Anyhow, I need a tool (free) to examine the request and
> response headers.
> >>
> >>Any suggestions?
> >>
> >>robert
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance: Get your refund fast by filing online.
> > http://taxes.yahoo.com/filing.html
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
> --
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Examining Response Headers
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
here's my suggestion: Firebird or Mozilla browser with LiveHttpHeaders
extension.
On 02/07/2004 12:35 AM Mike Duffy wrote:
> Robert,
>
> DevProxy is a great program for monitoring the request and response headers:
>
> http://www.widgetbuilders.com/
>
> I recently did some socket programming. DevProxy was an invaluable tool. You can see exactly
> what flows through the socket between browser and host. Very good GUI interface.
>
> Mike
>
>
> --- Robert Taylor <rt...@mulework.com> wrote:
>
>>Sorry for the OT post, but Googling and searching the mailing list archives are not producing
>>much.
>>I may not be asking the right question though.
>>
>>Anyhow, I need a tool (free) to examine the request and response headers.
>>
>>Any suggestions?
>>
>>robert
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Examining Response Headers
Posted by Mike Duffy <md...@yahoo.com>.
Robert,
DevProxy is a great program for monitoring the request and response headers:
http://www.widgetbuilders.com/
I recently did some socket programming. DevProxy was an invaluable tool. You can see exactly
what flows through the socket between browser and host. Very good GUI interface.
Mike
--- Robert Taylor <rt...@mulework.com> wrote:
> Sorry for the OT post, but Googling and searching the mailing list archives are not producing
> much.
> I may not be asking the right question though.
>
> Anyhow, I need a tool (free) to examine the request and response headers.
>
> Any suggestions?
>
> robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org