Porting httpclient 3 API to 4.3.3

2014-05-16 Thread d_k
Hello, I'm porting some old code that's using httpclient 3 and I'm having some trouble porting the makeLenient() [0] method call. I've managed to identify the properties being set and I ported the ones I was able to but i'm stuck on setting these properties: http.protocol.unambiguous-statusline

Re: How to set single-cookie-header with the 4.3 API?

2014-05-11 Thread d_k
/ httpclient/apidocs/org/apache/http/impl/cookie/BestMatchSpec.html [4] https://svn.apache.org/repos/asf/httpcomponents/httpclient/ tags/4.3.3/httpclient/src/main/java/org/apache/http/ impl/client/HttpClientBuilder.java On 06/05/14 08:11, d_k wrote: Hello, I'm porting httpclient 3 code

Re: How to set single-cookie-header with the 4.3 API?

2014-05-11 Thread d_k
Thanks for the help! On Sun, May 11, 2014 at 5:20 PM, Oleg Kalnichevski ol...@apache.org wrote: On Sat, 2014-05-10 at 10:49 +0300, d_k wrote: Thank you very much for the help! So to my understanding after reading the code for BrowserCompatSpec [0] is that when using

How to set single-cookie-header with the 4.3 API?

2014-05-06 Thread d_k
Hello, I'm porting httpclient 3 code to the 4.3 API and I was unable to find a way to set the single-cookie-header setting using the 4.3 API The original line states: params.setBooleanParameter(HttpMethodParams.SINGLE_COOKIE_HEADER, true); And I was wondering how to write it with the 4.3 API.

Re: Authentication with multiple realms.

2014-03-25 Thread d_k
credentials and although the realm changed they were not invalidated. On Mon, Mar 24, 2014 at 10:11 PM, Oleg Kalnichevski ol...@apache.orgwrote: On Mon, 2014-03-24 at 18:38 +0200, d_k wrote: I'm upgrading a Nutch plugin that used httpclient 3.x and because Nutch was already dependent

Re: Authentication with multiple realms.

2014-03-25 Thread d_k
Thank you very much for the support. :-) So it appears that upgrading httpclient won't solve this issue? On Tue, Mar 25, 2014 at 11:27 AM, Oleg Kalnichevski ol...@apache.orgwrote: On Tue, 2014-03-25 at 09:29 +0200, d_k wrote: Its looks like the first GET is challenged and the credentials

Re: Authentication with multiple realms.

2014-03-25 Thread d_k
Alright. Thank you very much for the help! Currently JIRA (https://issues.apache.org/jira/browse/HTTPCLIENT) is down for maintenance but i'll open an issue when its back online. On Tue, Mar 25, 2014 at 12:02 PM, Oleg Kalnichevski ol...@apache.orgwrote: On March 25, 2014 10:55:20 AM CET, d_k

Authentication with multiple realms.

2014-03-24 Thread d_k
Hello. I'm using httpclient-4.1.1 and i'm trying to authenticate with different users on different realms but it seems to fail. i create several AuthScope objects with the same host and port and a different realm for each one. If I pass schema as null then httpclient will attempt to send the

maintaining authentication state between multiple threads/hosts

2014-03-10 Thread d_k
I'm using HttpClient 4.1.1 and i'm performing multiple requests to several web servers (using nutch 2.x) that requires authentication. I've read that I can save the authentication state between calls by passing the same HttpContext but that I shouldn't reuse the same HttpContext between different