RE: watch http request

2009-11-11 Thread Jerome Louvel
Hi guys,

In addition, there is a RFE to support this directly in Restlet:

Support logging of outbound calls
http://restlet.tigris.org/issues/show_bug.cgi?id=238

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


-Message d'origine-
De : Rhett Sutphin [mailto:rh...@detailedbalance.net] 
Envoyé : lundi 9 novembre 2009 13:44
À : discuss@restlet.tigris.org; Michael Strupp
Objet : Re: watch http request

Hi Michael,

This is a discuss topic, so I'm moving it there.

On Nov 7, 2009, at 9:24 AM, Michael Strupp wrote:

 Hello community

 I'm writing a java Rest Client with restlet, to call a .NET  
 Webservice.

 To debug my application, it would be nice to watch the http request my
 client sends to the server.

 What i need is a simple method witch shows me for example something  
 like
 that:

 GET /infotext.html HTTP/1.1
 Host: www.example.net

 or this:

 POST /wiki/Spezial:Search HTTP/1.1
 Host: de.wikipedia.org
 Content-Type: application/x-www-form-urlencoded
 Content-Length: 24

 search=Katzengo=Artikel


 Is there a way to do this?

One way would be to use Apache HTTP Client connector and use its  
(Apache HTTP Client's) wire logger:

http://hc.apache.org/httpclient-3.x/logging.html

Rhett

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

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


Re: watch http request

2009-11-09 Thread Rhett Sutphin
Hi Michael,

This is a discuss topic, so I'm moving it there.

On Nov 7, 2009, at 9:24 AM, Michael Strupp wrote:

 Hello community

 I'm writing a java Rest Client with restlet, to call a .NET  
 Webservice.

 To debug my application, it would be nice to watch the http request my
 client sends to the server.

 What i need is a simple method witch shows me for example something  
 like
 that:

 GET /infotext.html HTTP/1.1
 Host: www.example.net

 or this:

 POST /wiki/Spezial:Search HTTP/1.1
 Host: de.wikipedia.org
 Content-Type: application/x-www-form-urlencoded
 Content-Length: 24

 search=Katzengo=Artikel


 Is there a way to do this?

One way would be to use Apache HTTP Client connector and use its  
(Apache HTTP Client's) wire logger:

http://hc.apache.org/httpclient-3.x/logging.html

Rhett

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