[prev in list] [next in list] [prev in thread] [next in thread]
List: httpclient-users
Subject: Log
From: "Joan Balaguero" <joan.balaguero () grupoventus ! com>
Date: 2012-09-02 11:33:07
Message-ID: 003301cd88fe$ba171cc0$2e455640$ () balaguero () grupoventus ! com
[Download RAW message or body]
Hello,
I’m trying to debug a request/response. I set this in my log4.xml:
<!-- HTTP log for debug purposes -->
<appender name="HTTP_LOG" class="org.apache.log4j.FileAppender">
<param name="file" value="/var/log/ventus/joan/http4.log"/>
<param name="threshold" value="DEBUG"/>
<param name="append" value="true"/>
<param name="immediateFlush" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="conversionPattern" value="%m%n"/>
</layout>
</appender>
<logger name="org.apache.http.impl.conn">
<level value="FINEST"/>
<appender-ref ref="HTTP_LOG"/>
</logger>
<logger name="org.apache.http.impl.client">
<level value="FINEST"/>
<appender-ref ref="HTTP_LOG"/>
</logger>
<logger name="org.apache.http.client">
<level value="FINEST"/>
<appender-ref ref="HTTP_LOG"/>
</logger>
Then I get:
Connection request: [route: {}->http://tickets.vueling.com][total kept
alive: 0; route allocated: 0 of 1000; total allocated: 0 of 1000]
Connection leased: [id: 0][route: {}->http://tickets.vueling.com][total kept
alive: 0; route allocated: 1 of 1000; total allocated: 1 of 1000]
Connecting to tickets.vueling.com:80
CookieSpec selected: best-match
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: POST /XmlSearch.aspx HTTP/1.1
Receiving response: HTTP/1.1 200 OK
Cookie accepted: "[version: 0][name: ASP.NET_SessionId][value:
tvx4id55hmrcq2fmco002m55][domain: tickets.vueling.com][path: /][expiry:
null]".
Cookie accepted: "[version: 0][name:
BIGipServervueling-skysales3.4-www][value:
jlOCz9CQ5EnlQbxBnfFbQQTTTyksQJpq1FCnhbPn6I+ZYL4HS8Dp4VG7JCdpKYvFYreq+NoFdVwD
MNQ=][domain: tickets.vueling.com][path: /][expiry: null]".
Connection can be kept alive for 3600000 MILLISECONDS
Connection [id: 0][route: {}->http://tickets.vueling.com] can be kept alive
for 3600000 MILLISECONDS
Connection released: [id: 0][route: {}->http://tickets.vueling.com][total
kept alive: 1; route allocated: 1 of 1000; total allocated: 1 of 1000]
Connection request: [route: {}->http://tickets.vueling.com][total kept
alive: 1; route allocated: 1 of 1000; total allocated: 1 of 1000]
Connection leased: [id: 0][route: {}->http://tickets.vueling.com][total kept
alive: 0; route allocated: 1 of 1000; total allocated: 1 of 1000]
CookieSpec selected: best-match
Cookie [version: 0][name: ASP.NET_SessionId][value:
tvx4id55hmrcq2fmco002m55][domain: tickets.vueling.com][path: /][expiry:
null] match [tickets.vueling.com:80/favicon.ico]
Cookie [version: 0][name: BIGipServervueling-skysales3.4-www][value:
jlOCz9CQ5EnlQbxBnfFbQQTTTyksQJpq1FCnhbPn6I+ZYL4HS8Dp4VG7JCdpKYvFYreq+NoFdVwD
MNQ=][domain: tickets.vueling.com][path: /][expiry: null] match
[tickets.vueling.com:80/favicon.ico]
Auth cache not set in the context
Target auth state: UNCHALLENGED
Proxy auth state: UNCHALLENGED
Attempt 1 to execute request
Sending request: GET /favicon.ico HTTP/1.1
Receiving response: HTTP/1.1 404 Not Found
Connection can be kept alive for 3600000 MILLISECONDS
But I need to see what headers and parameters are being sent with the
request. Is this possible?
Thanks,
Joan.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic