Re: Weird issue with '+' symbols in path?

2009-03-11 Thread Oleg Kalnichevski
Eugeny N Dzhurinsky wrote: Hello there! I've recently stumbled over the weird issue with + symbols when using Commons HttpClient 3.1. There is the unit test, which illustrates the problem below: import

Re: HTTP CONNECT Method gone?

2009-03-11 Thread Oleg Kalnichevski
, route); For non-authenticated proxies? I doubt that. At any rate this functionality has never been tested. Oleg 2009/3/11 Andreas Weber senior.we...@gmail.com: Hi! This will help me indeed; Thank you very much! 2009/3/11 Oleg Kalnichevski ol...@apache.org: Andreas Weber wrote: Hi! I

Re: Version 4 equivalent to TraceMethod

2009-03-15 Thread Oleg Kalnichevski
On Thu, 2009-03-12 at 15:36 +0100, Andreas Weber wrote: Hi, Is there any ready-to-use equivalent to What's wrong with HttpTrace? Oleg TraceMethod trace = new TraceMethod(http://jakarata.apache.org;); // Execute the method and handle any errors. ... // Read the

Re: Use consumeEntity whenever perfiorming 2+ requests?

2009-03-15 Thread Oleg Kalnichevski
On Fri, 2009-03-13 at 12:59 -0700, icet wrote: Should I use consumeEntity whenever I want to use the same client to perform more than one sequential request? (1) What do you mean by consumeEntity? Do you mean HttpEntity#consumeContent? For detailed explanation of the

Re: authentication fail, how do I get redirect URL?

2009-03-15 Thread Oleg Kalnichevski
On Sat, 2009-03-14 at 13:28 -0700, esu2 wrote: Hi I'm using HTTPClient to access a single sign on page. I post request to login form with wrong password, I got http response status = 401 (authentication fail). I think this make sense. However, I do the same thing in Firefox and watch the

Re: utility methods to parse form encoded parameters

2009-03-15 Thread Oleg Kalnichevski
On Sat, 2009-03-14 at 23:26 -0400, Bill Higgins wrote: Hi, I tried looking for this but no luck. Are there any utility methods in HttpCore or HttpClient to parse form encoded parameters? E.g. something like name1=value1name2=value2 Thanks in advance.

Re: authentication fail, how do I get redirect URL?

2009-03-15 Thread Oleg Kalnichevski
esu2 wrote: Thank you. Unfortunatly, this is a HTTPS site (pass user name/password). How do I capture sent packet? Anyone see the similar problem? Use a plugin such as HttpFox [1] to capture HTTP packets on the browser side, and the wire logging on the HttpClient side [1]

Re: authentication fail, how do I get redirect URL?

2009-03-15 Thread Oleg Kalnichevski
esu2 wrote: Thank you. no luck. I compared the wire log and firefox, no difference. Browser always return 302 but HTTPClient return 401 I think the only rational explanation is that the server was taken over by green men from Mars. I cannot help with extraterrestrials. Oleg

Re: Half closed connections issue

2009-03-16 Thread Oleg Kalnichevski
2009/3/2 Sam Crawford samcrawf...@gmail.com Perfect, that should do the job nicely. Many thanks, Sam 2009/3/2 Oleg Kalnichevski ol...@apache.org On Sun, 2009-03-01 at 22:34 +, Sam Crawford wrote: Hello, I'm having an issue with HttpClient communicating

Re: Uploading multiple files via HttpClient

2009-03-19 Thread Oleg Kalnichevski
On Mon, 2009-03-16 at 18:46 -0700, Dan King wrote: I've put together code that can send one file at at time via HTTP. When I send more than one at a time the first file is processed but then the app hangs. My hunch is the problem is caused by the boundaries of the HTTP parts. Can anyone

Re: cannot set protocol for HttpClient instance - bad_record_mac error

2009-03-19 Thread Oleg Kalnichevski
On Wed, 2009-03-18 at 00:38 +, madi...@gmail.com wrote: We trying to use only sslv3 for a ssl connection when we register sslv3 globally like Protocol.registerProtocol( https, https ) it works fine but when we set for a particular instance like

Re: Problems in using FormLogin using HTTPClient

2009-03-19 Thread Oleg Kalnichevski
On Thu, 2009-03-19 at 00:24 -0700, anadhundale wrote: Hi, I am getting following error while running ClientFormLogin class given in sample code of Httpclient Exception in thread main java.lang.NoSuchMethodError: org.apache.http.protocol.BasicHttpContext: method init()V not found

Re: Reuse of HTTPClient among different invocations is ok, what about different Web Services, hosts?

2009-03-19 Thread Oleg Kalnichevski
On Thu, 2009-03-19 at 14:13 +0200, Dobri Kitipov wrote: Hi everybody, when we reuse HTTPClient underneath each subsequent call to HttpClient.executeMethod() will go to the connection manager (MultiThreadedHttpConnectionManager) and ask for an instance of HttpConnection. I have tested some use

Re: Problems in using FormLogin using HTTPClient

2009-03-19 Thread Oleg Kalnichevski
On Thu, 2009-03-19 at 06:18 -0700, anadhundale wrote: Hi, Thanks for replaying, I have checked all dependent libraries are on the class path.I don't where i am doing wrong. Most likely you also have an older version of HttpCore on the class path, probably from Axis2. Oleg Make

Re: Uploading multiple files via HttpClient

2009-03-23 Thread Oleg Kalnichevski
- [\r][\n] [DEBUG] header - HTTP/1.1 100 Continue[\r][\n] [DEBUG] header - HTTP/1.1 100 Continue[\r][\n] [DEBUG] header - [\r][\n] [DEBUG] HttpMethodBase - OK to continue received [DEBUG] EntityEnclosingMethod - Request body sent -Dan From: Oleg

Re: HTTP RETRY HANDLER

2009-03-23 Thread Oleg Kalnichevski
On Mon, 2009-03-23 at 02:51 -0700, sveno wrote: olegk wrote: --- DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.setHttpRequestRetryHandler(new HttpRequestRetryHandler() { public boolean retryRequest( IOException exception,

Re: Uploading multiple files via HttpClient

2009-03-24 Thread Oleg Kalnichevski
On Mon, 2009-03-23 at 10:52 -0700, Dan King wrote: Oleg, The original log was too big to send. I had to re-do the exercise with very small files - cancel.png (587 bytes) check.png (2.51 KB). Below is the complete log: Dan, I see absolutely nothing wrong with the multipart request

Re: Http Multi-part exception when using InputStreamBody

2009-03-24 Thread Oleg Kalnichevski
On Tue, 2009-03-24 at 08:51 +0530, Subhash Chandran wrote: We are getting this Exception: quote Exception in thread main org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:557) at

Re: Uploading multiple files via HttpClient

2009-03-24 Thread Oleg Kalnichevski
-265001916915724 Content-Disposition: form-data; name=imgFile[]; filename=check.png Content-Type: image/png PNG -265001916915724-- From: Oleg Kalnichevski ol...@apache.org To: HttpClient User Discussion httpclient-users@hc.apache.org

Re: Http Multi-part exception when using InputStreamBody

2009-03-25 Thread Oleg Kalnichevski
Sam On Tue, Mar 24, 2009 at 9:37 AM, Oleg Kalnichevski ol...@apache.org wrote: On Tue, 2009-03-24 at 08:51 +0530, Subhash Chandran wrote: We are getting this Exception: quote Exception in thread main org.apache.http.client.ClientProtocolException

Re: IO Exception when Content size increases

2009-03-28 Thread Oleg Kalnichevski
On Fri, 2009-03-27 at 18:31 -0700, Hamming77 wrote: The first, I'm sorry for my english, it's rusty!!! I want to post a big file to the server, but encounter the issues. the debug information followed. And that if I post the file size 10K, the operation success. if the file size

Re: Invalid redirect location: http://wapp.baidu.com/f?kw=???????

2009-03-30 Thread Oleg Kalnichevski
On Sat, 2009-03-28 at 22:50 +0800, nonopo12345 wrote: Hi,i'm using httpclient to connect a url. The problem is that i accept a error redirect location ,for example http://wapp.baidu.com/f?kw= , when to visit the url. the url to visit

Re: Invalid redirect location: http://wapp.baidu.com/f?kw=???????

2009-03-30 Thread Oleg Kalnichevski
nonopo12345 wrote: ??2009-03-30??Oleg Kalnichevski ol...@apache.org ?? On Sat, 2009-03-28 at 22:50 +0800, nonopo12345 wrote: Hi??i'm using httpclient to connect a url. The problem is that i accept a error redirect location ,for example http://wapp.baidu.com/f?kw= , when to visit

Re: Help with basic authentication

2009-03-30 Thread Oleg Kalnichevski
working on documentation for 4.0 API http://wiki.apache.org/HttpComponents/HttpClientTutorial Help and contributions would be _very_ welcome. Oleg Cheers John -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: 30 March 2009 12:31 To: HttpClient User Discussion

Re: httpclient 3.1 using RFC 3986 encoding rules?

2009-03-30 Thread Oleg Kalnichevski
Jeroen van Vianen wrote: Hi, I am trying to implement an interface to an OAuth server. OAuth requires RFC 3986 [1] rather than RFC 1738 [2] encoding rules for URIs, more specifically a space should be encoded as '%20' and not as '+'. This breaks oauth_signature calculations. Is there a way

Re: How to release connection with HttpClient 4.0 api ?

2009-04-01 Thread Oleg Kalnichevski
On Wed, 2009-04-01 at 15:24 +0530, Brijesh Deo wrote: Hi, I am trying to port my earlier code which used HttpClient 3.1 to now use HttpClient 4.0. I am trying to find out a corresponding method with 4.0 to gracefully release a connection as it was being done with the 3.1 api.

Re: HttpClient performance

2009-04-02 Thread Oleg Kalnichevski
On Thu, Apr 02, 2009 at 01:54:56AM +0200, Gruntz,Dominik wrote: Hi, I wrote a method which requests a resource several times from on a servlet server (on localhost). It seems to me that the version using HttpClient is abouot a factor of 20-30 slower than the version based on Sun's

Re: HttpClient performance

2009-04-02 Thread Oleg Kalnichevski
, like accidentally leaving logging on. Oleg Thanks for any further advice. Best wishes Dominik -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Donnerstag, 2. April 2009 09:50 To: HttpClient User Discussion Subject: Re: HttpClient performance

Re: HttpClient performance

2009-04-02 Thread Oleg Kalnichevski
On Thu, Apr 02, 2009 at 10:55:32AM +0200, Oleg Kalnichevski wrote: On Thu, Apr 02, 2009 at 10:42:38AM +0200, Gruntz,Dominik wrote: Thanks for your help! I tried to simplify my question and therefore omitted some details. Actually, the resource I am accessing has a body of length 0

Re: HttpClient performance

2009-04-02 Thread Oleg Kalnichevski
Gruntz,Dominik wrote: Thank you very much! This sample code is very helpful!!! The problem with my code was the missing property HttpConnectionParams.STALE_CONNECTION_CHECK which has to be set to false. Actually I should have thought of that. The stale connection check tends to be a

Re: ConnectException: HttpClient proxy settings

2009-04-02 Thread Oleg Kalnichevski
Villemos, Gert wrote: I have problems accessing a site through a proxy. I'm connecting to a site demanding credentials (https on default port 443) through a local proxy (port 80) with authentication. I have read the documentation and it looked simple, I just cant get it to work. My source

Re: ConnectException: HttpClient proxy settings

2009-04-03 Thread Oleg Kalnichevski
) -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Donnerstag, 2. April 2009 20:17 To: HttpClient User Discussion Subject: Re: ConnectException: HttpClient proxy settings Villemos, Gert wrote: I have problems

Re: Http Request that includes name value pairs and binary file data

2009-04-03 Thread Oleg Kalnichevski
On Fri, Apr 03, 2009 at 09:34:33AM -0700, Dan King wrote: In one http request, I'd like to send both name value pair information and binary file data. Is there a way, using HttpClient, to create one http request that includes both urlencoded and multipart content type? One could post

Re: Multi Part Form Requests in 4x

2009-04-06 Thread Oleg Kalnichevski
On Sat, Apr 04, 2009 at 05:03:32PM -0700, Talmage wrote: Are multi part form requests supported in the new HTTP Client 4x version? I can not seem to find any examples based on the new 4x API regarding multi part requests.

Re: Release date for HttpClient 4.0 ga?

2009-04-06 Thread Oleg Kalnichevski
On Mon, Apr 06, 2009 at 11:34:58AM +0200, Sascha Buchner wrote: Hello, when can we expect HttpClient 4.0 to be ready for ga (we are not allowed to use beta software in our project)? Q3 2009 Oleg thanks Sascha

Re: Serializing BasicClientCookie and BasicCookieStore

2009-04-08 Thread Oleg Kalnichevski
On Tue, Apr 07, 2009 at 10:14:57PM +0100, Sam Crawford wrote: Evening, Does anyone know if any work has been conducted on serializing ClientCookies and CookieStores? (specifically BasicClientCookie and BasicCookieStore implementations). Not that I know of. HTTP state persistence is out of

Re: Authentication Help needed. Urgent

2009-04-12 Thread Oleg Kalnichevski
On Thu, 2009-04-09 at 09:07 -0700, srinivasch wrote: Hi, I am new to HttpClient and applying version 3.x for my application. All I know about my application which I am writing is that I have to invoke a URL something like this http://xyz.com:8303/cics/bcwa/AG80R and I have to send user ID

Re: MultiThreadedHttpConnectionManager

2009-04-12 Thread Oleg Kalnichevski
On Thu, 2009-04-09 at 14:01 -0700, mikkin wrote: Hi all, I have recently started using HttpClient and am really excited about it :-) I was wondering if someone could help me point out the difference between HostConfiguration and HttpConnection. I am planning to use

Re: HTTPClient 4.0B2 does not persist connections?

2009-04-12 Thread Oleg Kalnichevski
On Thu, 2009-04-09 at 16:46 -0700, HockeyDave wrote: I'm trying to upgrade from Httpclient 3.1 to HttpClient 4.0b2 because I read that it would be more performant, but I am finding it to be highly problematic in that it doesn't keep alive connections like 3.1 did. Well, it just does not.

Re: Reject Cookies

2009-04-12 Thread Oleg Kalnichevski
On Fri, 2009-04-10 at 06:34 -0700, HockeyDave wrote: How exactly does one go about removing protocol interceptors? Here's what I'm doing in 4.0b2 to handle cookies. My intent is to have as fast of a performance as possible and I don't want cookies coming over the wire slowing things down.

Re: Not able to download PDF and PNG files using Httpclient

2009-04-12 Thread Oleg Kalnichevski
On Fri, 2009-04-10 at 15:55 -0700, Rutuja Joshi wrote: Hello, I am working on a web crawler application and using HttpClient by Apache for the same. I have following issues that I am not able to resolve: (This is my first post and not sure to what extent I can provide the details and

Re: HTTPClient 4.0B2 does not persist connections?

2009-04-12 Thread Oleg Kalnichevski
On Sun, 2009-04-12 at 06:55 -0700, HockeyDave wrote: So what is the recommended approach? Not meddling with the connection persistence. Oleg - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional

Re: HttpClient v4 in Google App Engine fails with SSL errro for HTTP connection

2009-04-14 Thread Oleg Kalnichevski
On Mon, Apr 13, 2009 at 07:16:48AM -0700, wkeenan wrote: Hi, I'm not sure if this is a bug, potential feature request, or a usage error on my part, but when I deployed a very simple servlet to the GoogleApp engine to perform a HTTP GET on a HTTP URL but I received a SSL related sandbox

Re: ProtocolException being thrown for seemingly valid response

2009-04-14 Thread Oleg Kalnichevski
On Tue, Apr 14, 2009 at 12:17:18AM +0100, Sam Crawford wrote: Evening all, I'm encountering an odd issue with HttpClient 4.0b2 and HttpCore 4.0 GA. Sending a fairly benign request to a server running JIRA is causing HttpClient to throw a ProtocolException with the message The server failed

Re: ProtocolException being thrown for seemingly valid response

2009-04-14 Thread Oleg Kalnichevski
a nasty feeling that I may not be consuming the response of 304 reply. Thanks, Sam 2009/4/14 Oleg Kalnichevski ol...@apache.org On Tue, Apr 14, 2009 at 12:17:18AM +0100, Sam Crawford wrote: Evening all, I'm encountering an odd issue with HttpClient 4.0b2 and HttpCore 4.0

Re: ProtocolException being thrown for seemingly valid response

2009-04-14 Thread Oleg Kalnichevski
. The trouble is that the response body was not meant to be there in the first place. The servlet engine your application is talking to appears broken. Hope this helps Oleg 2009/4/14 Oleg Kalnichevski ol...@apache.org On Tue, Apr 14, 2009 at 01:15:32PM +0100, Sam Crawford wrote: Scrub my earlier

Re: Gracefully handling half-closed connections (encore!)

2009-04-14 Thread Oleg Kalnichevski
Sam Crawford wrote: Afternoon all, A few months back we had an issue with handling half closed TCP connections with HttpClient, and at the time I was advised to include something akin to the IdleConnectionEvictor - which we did and it's working very nicely in nearly all scenarios. However, in

Re: NullPointer with HttpClient 3.1 + IBM 1.4.1 JRE

2009-04-15 Thread Oleg Kalnichevski
On Tue, Apr 14, 2009 at 11:31:40AM -0500, Steve Hall wrote: All, I did some work integrating with a credit card authorizer over https using the HttpClient 3.1. Proper connection timeouts are very important to the authorizer. All of my testing, with a sun jdk worked fine, however when I

Re: Gracefully handling half-closed connections (encore!)

2009-04-15 Thread Oleg Kalnichevski
is not that tiny. 30 milliseconds for small payloads that take only 3-5 milliseconds to execute is a lot. Oleg Thanks again, Sam 2009/4/14 Oleg Kalnichevski ol...@apache.org Sam Crawford wrote: Afternoon all, A few months back we had an issue with handling half closed TCP connections

Re: WS Digest Authentication Issues

2009-04-17 Thread Oleg Kalnichevski
On Thu, Apr 16, 2009 at 12:51:48PM -0700, pcable wrote: Just a warning, I am very new to WS. I have a Simple HTTP Authentication working for this WS Client. However, I would like to get Digest or NTLM working. So, I am currently going down the Digest path. I see nothing wrong with

Re: Porting Axis2 using commons-httpclient 3.1 to httpclient 4.0

2009-04-17 Thread Oleg Kalnichevski
On Fri, 2009-04-17 at 17:17 -0400, Jeudy, Guillaume wrote: Hi, Hi New API is partially documented in this tutorial: http://wiki.apache.org/HttpComponents/HttpClientTutorial I'm attempting to port axis2 using commons-httpclient 3.1 to httpclient 4.0 locally. I have a few questions

Re: close all active connections of httpclient at a given instant.

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 10:57:22AM -0400, Rakesh Sinha wrote: For a particular case where I am using a http client reference ( multi-threaded context ) and would like to close and release all the active connections at a given instant. I had written the code as -

Re: Can servers block programmatic form submissions?

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 01:03:16PM -0400, Klein, Stephanie [USA] wrote: Hi, All, I'm writing an application to log into a website via a form. I've tried many different ways, but each time, I get re-directed to a page saying I'm being redirected to an authentication service on another

Re: Porting Axis2 using commons-httpclient 3.1 to httpclient 4.0

2009-04-21 Thread Oleg Kalnichevski
enclosing requests with non-repeatable entities. This is the reason it is enabled per default. Hope this helps Oleg Thanks, -Guillaume From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Fri 4/17/2009 8:01 PM To: HttpClient User Discussion Subject

Re: question abt persistent connections in httpcomponents-client-4.0-beta2

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 03:10:22PM -0700, Pankaj Gupta wrote: Hi, We have client code taken from the example file ClientMultiThreadedExecution.java and we have the client talking to Apache backend. We have noticed that the client makes a brand new connection on every request. What we

Re: mime-boundary headers

2009-04-22 Thread Oleg Kalnichevski
On Tue, Apr 21, 2009 at 04:09:13PM +0100, Richard Jones wrote: Hi Folks, Apologies if this is a newbie question; I'm a long time user of httpclient for basic purposes, but am being stumped this week by a more difficult requirement, and wonder if anyone can help. I need to assemble a

Re: HttpClient 4: Disable Default Header

2009-04-22 Thread Oleg Kalnichevski
On Wed, Apr 22, 2009 at 01:16:46AM -0700, Taneeda wrote: Hi guys, I solved this problem now. The solution ist to remove the RequestConnControl and the RequestTargetHost Interceptor from clients (DefaultHttpClient) HttpProcessor (BasicHttpProcessor). /** * RequestInterceptors adds MUST

Re: Weird problems with httpclient 4.0beta2 and httpcore 4.0

2009-04-22 Thread Oleg Kalnichevski
On Tue, Apr 21, 2009 at 05:01:45PM -0400, Sam Berlin wrote: Is using a ResponseHandler the reason why the HttpEntity response is consumed eagerly in DefaultHttpClient? Yes. I haven't used ResponseHandler's myself, but what I remember from their introduction is that the concept is

Re: Weird problems with httpclient 4.0beta2 and httpcore 4.0

2009-04-22 Thread Oleg Kalnichevski
: Wed 4/22/2009 8:53 AM To: HttpClient User Discussion Subject: RE: Weird problems with httpclient 4.0beta2 and httpcore 4.0 From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Wed 4/22/2009 6:01 AM To: HttpClient User Discussion Subject: Re

Re: mime-boundary headers

2009-04-23 Thread Oleg Kalnichevski
On Thu, Apr 23, 2009 at 10:33:27AM +0100, Richard Jones wrote: Hi, I need to assemble a multi-part request, consisting of some normal http headers, an xml document in the first mime-part, and a binary document in the second mime-part. I need to augment the mime-parts with their own

Re: mime-boundary headers

2009-04-23 Thread Oleg Kalnichevski
On Thu, Apr 23, 2009 at 03:15:35PM +0100, Richard Jones wrote: Hi Oleg, http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpmime/src/examples/org/apache/http/examples/entity/mime/ClientMultipartFormPost.java Following this example, I have re-written my code as

Re: Issue with HttpMethodRetryHandler

2009-05-03 Thread Oleg Kalnichevski
pcable wrote: I have the code working to actually bring back the data that I need. However, in the process of actually getting it working, I noticed that if the authentication had any issues (like acct locked out, or unauthorized) the program would go into an infinite loop of trying to

Re: Connection Reuse.

2009-05-03 Thread Oleg Kalnichevski
Keean Schupke wrote: 2009/5/3 Oleg Kalnichevski ol...@apache.org: There is no point forcing the client to keep a connection open if the server is not going to do likewise. Per default HttpClient tries to reuse every connection that can be reused. You need to find out why HttpClient considers

Re: Reuse Digest authentication nonce

2009-05-06 Thread Oleg Kalnichevski
On Wed, May 06, 2009 at 11:06:48AM -0400, Will Johnson wrote: I'm trying to get DIGEST authentication nonce working and running into some trouble. I've seen this message: http://markmail.org/message/yvyitckstgdunwtm#query:httpclient%20digest%20reu

Re: Reuse Digest authentication nonce

2009-05-06 Thread Oleg Kalnichevski
this is precisely what it does. You do not have to initialize the authentication scheme preemptively if you do not want to (most likely you will not even be able to do so, because you will not have the nonce until challenged at least once) Oleg - will -Original Message- From: Oleg

Re: Httpclient and NTLMv1 protocol support

2009-05-06 Thread Oleg Kalnichevski
. Please advise. Generally my advice is to NOT use NTLM. You'll be much better off in terms of security with SSL + Basic authentication. Oleg Thanks again for your help. Mr. Yoga On Wed, May 6, 2009 at 10:12 AM, Oleg Kalnichevski ol...@apache.org wrote: On Wed, May 06, 2009 at 09:36:30AM

Re: Httpclient and NTLMv1 protocol support

2009-05-07 Thread Oleg Kalnichevski
at 10:12 AM, Oleg Kalnichevski ol...@apache.org wrote: On Wed, May 06, 2009 at 09:36:30AM -0700, yoga p wrote: Hi, We are using HttpClient (commons-httpclient-3.0-rc2.jar) for NTLM Authentication and currently facing issues when the following security settings in Windows Server

Re: Problem with https and cookies: did not recieve secure cookie

2009-05-11 Thread Oleg Kalnichevski
Petr Prokop wrote: Hello, I am trying to log in into https site which sets two cookies, when looked at in Firefox, one is any connection another is secure connection only (that holds session id). http client only recieves any connection Another thing that caught my eye is that received cookie

Re: receiveResponseHeader() halting

2009-05-13 Thread Oleg Kalnichevski
On Wed, May 13, 2009 at 01:40:10PM +0200, Alexander M??ller wrote: Hi, I am trying to come up with a Reverse Proxy using HttpCore, however came across some difficulties and hope someone here could point me into the right direction. Basically I am having a servlet putting all of the

Re: receiveResponseHeader() halting

2009-05-13 Thread Oleg Kalnichevski
On Wed, May 13, 2009 at 02:35:28PM +0200, Alexander M??ller wrote: On 13.05.2009 at 14:10, in message 20090513121018.ga28...@ok2cons2.nine.ch, Hi Alexander This is approach is obviously wrong because it does not take into account so called hop-by-hop headers. Proxies should not

Re: receiveResponseHeader() halting

2009-05-13 Thread Oleg Kalnichevski
On Wed, May 13, 2009 at 03:13:06PM +0200, Alexander M??ller wrote: On 13.05.2009 at 14:50, in message 20090513125036.ga2...@ok2cons2.nine.ch, Oleg Kalnichevski ol...@apache.org wrote: Most likely the AbstractSessionInputBuffer#fillBuffer() blocks because the server is expecting more

Re: receiveResponseHeader() halting

2009-05-13 Thread Oleg Kalnichevski
On Wed, May 13, 2009 at 03:18:12PM +0200, Oleg Kalnichevski wrote: On Wed, May 13, 2009 at 03:13:06PM +0200, Alexander M??ller wrote: On 13.05.2009 at 14:50, in message 20090513125036.ga2...@ok2cons2.nine.ch, Oleg Kalnichevski ol...@apache.org wrote: Most likely

Re: Not able to upload bigger file (max size 4kb successful)

2009-05-17 Thread Oleg Kalnichevski
ghanchakkar wrote: I am using httpclient 3.1 with jre 1.5_15. I am able to post https request and able to get replys from iplanet web server with no issues, except when I try to upload file having size from than 9kb. Here is the log. Note: It seems connection close occurs at one particular

Re: Preferred use of HttpResponseInterceptor ?

2009-05-17 Thread Oleg Kalnichevski
Laurent Perez wrote: Hi I'm familiar with httpclient v3, but not with v4. The new interceptors are interesting, but I'm wondering if I should use them, given my following use case. I need to be able to check various response headers, for example status code, and treat them as exceptions.

Re: The target server failed to respond - What could be the problem ?

2009-05-20 Thread Oleg Kalnichevski
On Mon, May 18, 2009 at 09:13:28AM -0700, DerekC wrote: Hi all, I'm using HttpComponents 4 and I'm getting the following error if I wait more than 15 seconds between 2 HTTP GET requests: org.apache.http.NoHttpResponseException: The target server failed to respond If I use HTTPClient 3.1

Re: 4.0 client performance?

2009-05-22 Thread Oleg Kalnichevski
On Wed, May 20, 2009 at 02:28:40PM -0700, Pankaj Gupta wrote: Hi, I was wondering if there is 4.0 equivalent of http://hc.apache.org/httpclient-3.x/performance.html I'll port the document to the new API at some point of time. There is not really much one needs to tweak HttpClient 4.0 for

Re: Dealing with invalid/inconsistent response header

2009-05-25 Thread Oleg Kalnichevski
On Mon, May 25, 2009 at 12:09:02AM +0300, Ilia Lindov wrote: Hello, I'm writing a little app with HttpClient-3.1 that requests a url and receives a simple plain text answer. The problem is that I'm getting 'org.apache.commons.httpclient.ProtocolException: The server xxx.xxx.xxx.xxx

Re: HttpClient Cookies and Exchange Server FBA Authentication

2009-05-29 Thread Oleg Kalnichevski
On Thu, May 28, 2009 at 07:25:27PM -0700, Ridwan Tan (ridtan) wrote: Hello, I am trying to use httpclient to login to Exchange OWA with FBA authentication enabled. I am able to perform FBA authentication. Exchange kept returning an error saying that cookie is not enabled by the

Re: Problems to use HTTP proxy settings

2009-06-02 Thread Oleg Kalnichevski
Meinhardt Baer wrote: Hi! I have pretty simple code to download XML file using Apache HTTP client: HttpClient client = if(configurationSettings!= null) {client.getHostConfiguration().setProxy( Integer.parseInt(configurationSettings.get(http.proxyHost),

Re: Retrieving the underlying Socket from HttpClient

2009-06-03 Thread Oleg Kalnichevski
On Wed, Jun 03, 2009 at 03:00:31PM +0200, Guy wrote: Hi all, I was wondering if there is a way to retrieve the Socket (and therefore the SSLSession if using SSL) from a connection. I noticed there is a protected getSocket() method in the HttpConnetion class, but since this method is

Re: NullPointerException in AsyncNHttpClientHandler

2009-06-03 Thread Oleg Kalnichevski
Yongxing Wang wrote: Hi, We are using HTTP-NIO 4.0 to communicate with our internal http servers, on a very high volume bases (80Mbits/second on both upload and download). We use AsyncNHttpClientHandler and DefaultClientIOEventDispatch. We are seeing some strange behaviors randomly. After

Re: H4 - B3

2009-06-03 Thread Oleg Kalnichevski
Joan Balagueró Valls wrote: Hello Oleg, Do you know any idea about when you plan to release H4-beta3? Many thanks, Joan. Hi Joan HttpClient 4.0 trunk has been quite stable so far (7 bug fixed since beta4, only one of which I would consider anywhere near major). Therefore

Re: httpcomponents-client-4.0-beta3-SNAPSHOT + httpcomponents-core-4.1-SNAPSHOT?

2009-06-03 Thread Oleg Kalnichevski
Will McQueen wrote: Hi Oleg, I noticed that the currently-downloadable HttpClient 4.0-beta2 relies on the non-final beta release of HttpCore 4.0 (httpcore-4.0-beta3). It seems wasteful not to take advantage of the *final* core version now that it's available, so I looked at the svn repos for

Re: redirect fails when NTLM authentication is used for proxy

2009-06-04 Thread Oleg Kalnichevski
On Thu, Jun 04, 2009 at 03:41:53AM -0700, RajK wrote: HI all, During redirect time, the auth has to be cleared as the below issues says, http://issues.apache.org/jira/browse/HTTPCLIENT-211 but, it does it only for the hosts NTLM authentication, But, when we have NTLM at proxy,

[HttpClient] Tutorial is content complete and ready for review

2009-06-04 Thread Oleg Kalnichevski
[Cross-posting to the user list] Folks I finished writing the HttpClient tutorial and tidying up javadocs. This is all I can do without other people contributing. So, this is pretty much as good as it gets. Feel free to review the tutorial and javadocs and give your feedback. If you find

Re: ThreadSafeClientManager -- where's the default registry?

2009-06-05 Thread Oleg Kalnichevski
Will McQueen wrote: Hi, The single constructor for ThreadSafeClientConnManager says this about the schreg (ie, scheme registry) param: the scheme registry, or null for the default registry. Where is the default registry assigned? I would have thought that this constructor

Re: TUTORIAL AND ABORT METHOD

2009-06-05 Thread Oleg Kalnichevski
Joan Balagueró Valls wrote: Hello Oleg, I’ve read the tutorial, and it’s OK for me. Just one question (important, I think) about connection release. I’ve compared what your tutorial says about this, and the web. In H4 website, one can see the following: // In case of an

Re: Sending cookies promiscuously

2009-06-13 Thread Oleg Kalnichevski
Sam Crawford wrote: Evening all, Is there any way to configure a BasicClientCookie such that if the target domain for the cookie is unknown, it will be sent to any domain when executed with an HTTP request? We've found that if we create a simple BasicClientCookie (setting only a name and

Re: Upload file - multipart

2009-06-13 Thread Oleg Kalnichevski
Danny Gallagher wrote: Strange, it would not let me post the message with the logs in the body. Bounced back as exceeding spam threshold. Do I post them as attachments? -Original Message- From: Danny Gallagher [mailto:danny.gallag...@generatedsystems.com] Sent: Friday, June 12, 2009

Re: Simple call to URL to update data values

2009-06-15 Thread Oleg Kalnichevski
On Mon, Jun 15, 2009 at 04:09:07AM -0700, Suladna wrote: Hi! ? I want to make simple calls to a URL in order to update some data values. The URL is as following: ? http://www.myurl.com/test?param1=value1param2=value2param3=value3param4=value4 ? Is there any way to do this efficiently

Re: Newbie question about digest authentication

2009-06-18 Thread Oleg Kalnichevski
On Wed, Jun 17, 2009 at 05:39:45PM -0500, Patricia Goldweic wrote: Hi, I've just started using httpClient (version 3.1 at the moment), and I'm not clear as to the 'bigger' picture of using digest authentication with a particular get/post method. That is, I have a simple test case working

Re: redirect guidance for httpnio and redirects

2009-06-18 Thread Oleg Kalnichevski
On Thu, Jun 18, 2009 at 04:05:16AM +0200, Adrian Cole wrote: Hello, Does anyone know of a page or otherwise info regarding redirects and apache httpcomponents 4.0 nio? Specifically, I'm looking to identify the redirect conditions not automatically followed by httpnio and what patterns there

Re: PostMethod.setQueryString vs PostMethod.addParameter

2009-06-18 Thread Oleg Kalnichevski
of given the description of the problem. Oleg On Thu, Jun 18, 2009 at 8:54 AM, Oleg Kalnichevski ol...@apache.org wrote: On Wed, Jun 17, 2009 at 07:03:52PM -0500, charlie wrote: Java 1.6 HttpClient 3.1 OS: Windows Linux I'm seeing some odd behavior, I am trying to POST to a website

Re: PostMethod.setQueryString vs PostMethod.addParameter

2009-06-18 Thread Oleg Kalnichevski
, Oleg Kalnichevski ol...@apache.org wrote: On Thu, Jun 18, 2009 at 09:08:42AM -0500, charlie wrote: I've succesfully used cURL to post to this website in the past, I don't think its a server side issue. Server side is using PERL if that means anything. You are very welcome to disgree

Re: Chunk encoding multipart post

2009-06-22 Thread Oleg Kalnichevski
On Sat, Jun 20, 2009 at 05:25:03PM -0700, spencer wrote: Hi, Is it possible to chunk encode a multipart post? I noticed that the multipart entity is not extending the AbstractHttpEntity (which lets you enable chunk encoding). The the other entities (like InputStream Entity) do. Is

Re: redirect fails when NTLM authentication is used for proxy

2009-06-24 Thread Oleg Kalnichevski
On Mon, Jun 22, 2009 at 09:35:58PM -0700, RajK wrote: HI Oleg, Thanks for the reply, here is the wire logs, [DEBUG] header - GET http://verisign.com/ HTTP/1.1[\r][\n] [DEBUG] header - User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n] [DEBUG] header - Host: verisign.com[\r][\n]

[HttpCore] 4.1 feature set Re: [ANNOUNCEMENT] HttpComponents HttpCore 4.0.1 (GA) Released

2009-06-24 Thread Oleg Kalnichevski
targeted for 4.1 can be found here: https://issues.apache.org/jira/browse/HTTPCORE/fixforversion/12313548 Hope this helps Oleg On Mon, Jun 22, 2009 at 8:43 PM, Oleg Kalnichevski ol...@apache.org wrote: The Apache HttpComponents project is pleased to announce the release of HttpComponents

Re: httpclient 4.x:407 Proxy Authentication Required

2009-06-24 Thread Oleg Kalnichevski
On Wed, Jun 24, 2009 at 02:37:26AM -0700, Angelo Chen wrote: Hi, I need to use proxy to login to my site, code below works quite well when the setEntity line is commented out, if not then I'm getting this error returning from proxy server: 407 Proxy Authentication Required any idea

Re: HttpClient instance management

2009-06-24 Thread Oleg Kalnichevski
On Wed, Jun 24, 2009 at 03:45:51PM +0200, Imre Fazekas wrote: Dear All, i'm just wondering when the DefaultHttpClient class should be instantiated. I have a class providing basic HTTP services like sending JSON message, sending a get and parsing the response, etc. So this class has

Re: HttpClient instance management

2009-06-24 Thread Oleg Kalnichevski
. For details see the section on connection management in the HttpClient tutorial: http://wiki.apache.org/HttpComponents/HttpClientTutorial Oleg Regards, Imre On 2009.06.24., at 15:57, Oleg Kalnichevski wrote: On Wed, Jun 24, 2009 at 03:45:51PM +0200, Imre Fazekas wrote: Dear All, i'm

<    1   2   3   4   5   6   7   8   9   10   >