RE: Which tool to use to see request/responses ?

2010-06-06 Thread Jerome Louvel
If you use the internal HTTP client, you can also set the tracing property
on the Client's context to see the raw request and response logged in the
console.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com





-Message d'origine-
De : Bruno Harbulot [mailto:bruno.harbu...@manchester.ac.uk] 
Envoyé : mardi 1 juin 2010 12:57
À : discuss@restlet.tigris.org
Objet : Re: Which tool to use to see request/responses ?

There's also:

- TCPmon http://ws.apache.org/commons/tcpmon/, which sits explicitly 
between the client and the server (so the client has to know to send the 
request to the intermediate host/port). (It looks similar to 
CharlesWebProxy.)

- Wireshark http://www.wireshark.org/: this one captures the actual 
traffic on the network interfaces.

Best wishes,

Bruno.


On 28/05/10 23:21, Fabian Mandelbaum wrote:
 One such tool, which is made in Java, and it's not so expensive (USD
 50 or so IIRC), is Charles Web Proxy.

 http://www.charlesproxy.com/

 There's also the HTTPFox addon for Firefox, which is good enough if
 your client side is a web browser (which is not your case, but
 anyway...)

 I'm sure there's other web proxies too, and some even may use network
 traffic sniff tools to eavesdrop on http traffic, but for 50 USD
 Charles Web Proxy does an excellent job (IMVHO, of course).


 On Fri, May 28, 2010 at 6:52 PM, HThideki.tih...@gmail.com  wrote:
 Hi,

 which tool can I use to see what the requests and responses are between a
httpclient and the Tomcat server ?

 Currently I have client code like:

 ClientResource helloClientResource =new
ClientResource(http://localhost:8080/...;);
 ...

 helloClientResource.post(xmldocument).write(System.out);


 How can I see the actual request that is sent to Tomcat  ?

 The same for the response I get back ?

 Can I do this code wise or do I need a tool for this ?

 Anyone using such a tools ?

 H.

 --

http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=26145
72





--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=26155
46

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2617648


Re: Which tool to use to see request/responses ?

2010-05-28 Thread Fabian Mandelbaum
One such tool, which is made in Java, and it's not so expensive (USD
50 or so IIRC), is Charles Web Proxy.

http://www.charlesproxy.com/

There's also the HTTPFox addon for Firefox, which is good enough if
your client side is a web browser (which is not your case, but
anyway...)

I'm sure there's other web proxies too, and some even may use network
traffic sniff tools to eavesdrop on http traffic, but for 50 USD
Charles Web Proxy does an excellent job (IMVHO, of course).


On Fri, May 28, 2010 at 6:52 PM, HT hideki.tih...@gmail.com wrote:
 Hi,

 which tool can I use to see what the requests and responses are between a 
 httpclient and the Tomcat server ?

 Currently I have client code like:

 ClientResource helloClientResource =new 
 ClientResource(http://localhost:8080/...;);
 ...

 helloClientResource.post(xmldocument).write(System.out);


 How can I see the actual request that is sent to Tomcat  ?

 The same for the response I get back ?

 Can I do this code wise or do I need a tool for this ?

 Anyone using such a tools ?

 H.

 --
 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2614572




-- 
Fabián Mandelbaum
IS Engineer

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2614578