hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordi Domingo BorrĂ s <jordi.domi...@gmail.com>
Subject Parsing Invalid HTTP Headers
Date Wed, 31 Oct 2012 16:14:17 GMT
Hi,

I'm getting this error due to an invalid header.

I'm using Http 4.2.2 with a PoolingClientConnectionManager and what is
explained here:
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/advanced.html#d5e1339
doesn't
work.

I've also tried with a Response Interceptor but fails before calling it.

Below is the stacktrace. Any help is greatly appreciated.

Caused by: org.apache.http.ProtocolException: Invalid header: Expires
 at
org.apache.http.impl.io.AbstractMessageParser.parseHeaders(AbstractMessageParser.java:226)
~[httpcore-4.2.2.jar:4.2.2]
at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
~[httpcore-4.2.2.jar:4.2.2]
 at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
~[httpcore-4.2.2.jar:4.2.2]
at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
~[httpclient-4.2.2.jar:4.2.2]
 at
org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
~[httpclient-4.2.2.jar:4.2.2]
at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
~[httpcore-4.2.2.jar:4.2.2]
 at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
~[httpcore-4.2.2.jar:4.2.2]
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
~[httpclient-4.2.2.jar:4.2.2]
 at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
~[httpclient-4.2.2.jar:4.2.2]
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
~[httpclient-4.2.2.jar:4.2.2]
 ... 7 common frames omitted

Regards,

Jordi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message