hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben T <tomec...@hotmail.com>
Subject Basic Authorization Header Missing w/ FileBody Entity
Date Sun, 24 Jul 2011 01:36:07 GMT
I'm using HttpClient 4.1.1 with HttpPost and MultipartEntity 
(BROWSER_COMPATIBLE) where authentication is set through setCredentials. 
  When a FileBody or InputStreamBody is added to the Entity and the 
HttpPost is executed by the HttpClient, the Basic Authorization header 
will not be sent. This is whether or not preemptive authentication is used.

If the Entity only contains a StringBody then the Authorization header 
will be sent.

Trying to use HttpPost.addHeader to force the Authorization string 
appends an extra CRLF which kills the header section.

Am I doing something wrong?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message