Re: any suggestions as to what could be wrong here?

2009-06-24 Thread Oleg Kalnichevski
- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Wednesday, June 24, 2009 7:47 AM To: HttpClient User Discussion Subject: Re: any suggestions as to what could be wrong here? On Mon, Jun 22, 2009 at 05:12:11PM -0500, Patricia Goldweic wrote: Hi, I've (very) recently

Re: redirect fails when NTLM authentication is used for proxy

2009-06-26 Thread Oleg Kalnichevski
On Fri, Jun 26, 2009 at 04:36:14AM -0700, RajK wrote: Hi Oleg, I have downloaded the source file and try to compile it, it gave errors as it was not able to locate the files such as files in org.apache.http.params.

Re: Status tracking

2009-06-26 Thread Oleg Kalnichevski
On Fri, Jun 26, 2009 at 01:33:30PM +0200, Adrian Cole wrote: Hello. I am using http core NIO and investigating how to provide feedback on upload (PUT/POST) and download (GET) entity enclosing requests. Essentially, I'd like to know when a certain number of the overall bytes have been

Re: Status tracking

2009-06-26 Thread Oleg Kalnichevski
out here... For stable releases, it appears so. Oleg What do you think? -Adrian jclouds On Fri, Jun 26, 2009 at 3:20 PM, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jun 26, 2009 at 01:33:30PM +0200, Adrian Cole wrote: Hello. I am using http core NIO and investigating

Re: Chunk encoding multipart post

2009-06-28 Thread Oleg Kalnichevski
From: Oleg Kalnichevski ol...@apache.org To: HttpClient User Discussion httpclient-users@hc.apache.org Sent: Monday, June 22, 2009 6:48:51 AM Subject: Re: Chunk encoding multipart post On Sat, Jun 20, 2009 at 05:25:03PM -0700, spencer wrote: Hi, Is it possible

Re: redirect fails when NTLM authentication is used for proxy

2009-06-29 Thread Oleg Kalnichevski
On Mon, Jun 29, 2009 at 02:09:32AM -0700, RajK wrote: Hi Oleg, I tried out for the release, https://repository.apache.org/content/repositories/snapshots/org/apache/httpcomponents/httpclient/4.0-beta3-SNAPSHOT/ This time I did include all the jars (http-core, jcifs for Ntlm etc.)

Re: Request parameters?

2009-07-02 Thread Oleg Kalnichevski
On Thu, Jul 02, 2009 at 10:13:35AM -0400, Kevin Roll wrote: On Jul 2, 2009, at 10:09 AM, Oz Levanon wrote: I'm not using httpclient version 4, so I couldn't compile your code, but it seems to me your confusing two different types of parameters. The parameter you want are the URL

Re: stateful httpclient call in servlet

2009-07-07 Thread Oleg Kalnichevski
On Mon, Jul 06, 2009 at 01:51:07AM -0700, zhang99 wrote: pseudo code service(..){ //httpclient get http://www.facebook.com } the above is pseudo code for java servlet, when user call this servlet service(..) from browser repeatly for instance 1. call

Re: QUESTION ABOUT COOKIES

2009-07-07 Thread Oleg Kalnichevski
On Mon, Jul 06, 2009 at 08:14:48PM +0200, Joan Balaguer? Valls wrote: Hello Oleg, I?m trying to send cookies to a servlet with a simple app. Following the tutorial: HttpContext localContext = new BasicHttpContext(); CookieStore cookieStore = new BasicCookieStore();

Re: Behavioural difference between 4.0b2 and 4.0-rc1

2009-07-07 Thread Oleg Kalnichevski
On Tue, Jul 07, 2009 at 09:58:11AM +0100, Sam Crawford wrote: Morning all, We upgraded our application to use HttpClient 4.0-RC1 last weekend and observed a change in behaviour from 4.0-beta2 that I wanted to make you aware of (it may well be by design, just want to check!). Firstly, I

Re: QUESTION ABOUT COOKIES

2009-07-07 Thread Oleg Kalnichevski
/httpcomponents-client/logging.html Also, try setting cookie version to version 1 to force the use of a RFC compliant cookie spec and see if that makes any difference. Oleg Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: martes, 07 de julio de

Re: Cookie BestMatchSpec differences between 4.0-b2 and 4.0-rc1

2009-07-07 Thread Oleg Kalnichevski
Sam Crawford wrote: Afternoon all, As mentioned in my previous mail, we've just moved to 4.0-rc1 from 4.0-b2. We've just had a report of a strange application issue, which appears to stem from a persistent cookie being rejected by HttpClient's BestMatchSpec. I've tried visiting the same page

Re: QUESTION ABOUT COOKIES

2009-07-07 Thread Oleg Kalnichevski
. Post it inline. Oleg -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: martes, 07 de julio de 2009 17:18 Para: HttpClient User Discussion Asunto: Re: QUESTION ABOUT COOKIES On Tue, Jul 07, 2009 at 05:04:59PM +0200, Joan Balaguer? Valls wrote: Hello Oleg

Re: Cookie BestMatchSpec differences between 4.0-b2 and 4.0-rc1

2009-07-07 Thread Oleg Kalnichevski
On Tue, Jul 07, 2009 at 10:45:26PM +0100, Sam Crawford wrote: Thanks Oleg, much appreciated. Is there any major reason I should not opt for BrowserCompatSpec as my default? (I can understand why you wouldn't want to, as a library developer). We're communicating with all manner of servers

Re: Http trace for cookies

2009-07-08 Thread Oleg Kalnichevski
Joan Balagueró Valls wrote: Hello Oleg, I’m trying to send you the trace, but your mail server does not accept it. I paste here a couple of lines of this trace: This is the interesting part of the trace. The expiry date is correct in the line 7 (60 seconds from now). But it seems

Re: some detailed migration questions...

2009-07-08 Thread Oleg Kalnichevski
Ken Krugler wrote: A few answers in-line below. Disclaimer: I've ported some HttpClient 3.1 code to 4.0, but I haven't made heavy use of the full 4.0 functionality. I am new to HTTPComponents Client but have been using HttpClient 3.1 very extensively... So I am facing some migration work.

Re: mix logs when capturing httpclient.wire traces in multi-threaded application

2009-07-08 Thread Oleg Kalnichevski
mikkin wrote: Hi, We have a multi-threaded application that makes simultaneous http GET POST to the web-server. We use log4j to capture httpclient.wire traces and log them in diiferent files (one file per thread). However, running in multi-threaded mode, the httpclient.wire logs from one

Re: mix logs when capturing httpclient.wire traces in multi-threaded application

2009-07-09 Thread Oleg Kalnichevski
On Wed, Jul 08, 2009 at 03:46:55PM -0700, mikkin wrote: Oleg, Thanks for the reply. Actually we would typically like each thread to have its wire trace recorded into its own file. I do not think this is possible, but you may want to consult the log4j folks for a more authoritive answer.

Re: HttpClient 4 and self-signed certificate

2009-07-09 Thread Oleg Kalnichevski
On Wed, Jul 08, 2009 at 04:19:51PM -0700, bo wrote: Hi Oleg, HttpClient 3 had good examples on how to customize SocketFactory to allow for self-signed certificate. I tried to update these for 4.0 but run into Unconnected Sockets not implemented error. All I'm trying to do is to use

Re: some detailed migration questions...

2009-07-09 Thread Oleg Kalnichevski
On Wed, Jul 08, 2009 at 04:53:36PM -0700, Ken Krugler wrote: Since Michael wanted to change the user agent on a per-request basis, what would be the appropriate way to do this using http.useragent? In my code, I use this (via HttpParams) to configure the ThreadSafeClientConnManager that

Re: performance tuning possibilities?

2009-07-09 Thread Oleg Kalnichevski
On Thu, Jul 09, 2009 at 05:05:14PM +0200, Michael wrote: I completed my migration to the latest version of the HttpClient successfully. It is just a bit slower now than I would have ecpected... Maybe somebody has some tuning experiences to share? Michael, HttpClient should be _at least_

Re: EXPECT-CONTINUE HANDSHAKE

2009-07-10 Thread Oleg Kalnichevski
On Thu, Jul 09, 2009 at 06:32:29PM +0200, Joan Balaguer? Valls wrote: Hello Oleg, Can I set the expect-continue handshake at httpclient level? HttpParams objHttpParams = new BasicHttpParams(); HttpProtocolParams.setVersion(objHttpParams, HttpVersion.HTTP_1_1);

Re: performance tuning possibilities?

2009-07-10 Thread Oleg Kalnichevski
not mind managing connections manually, do not need cookie support, authentication and automatic redirects, you may well consider using HttpCore directly. Oleg 2009/7/9 Oleg Kalnichevski ol...@apache.org On Thu, Jul 09, 2009 at 05:05:14PM +0200, Michael wrote: I completed my migration

Re: Encoding/Decoding

2009-07-15 Thread Oleg Kalnichevski
Gerardo Corro wrote: Hi HC people, I'm implementing a filter that processes requests from many sources, and I always do a redirection at the end, the problem I have is that some request are encoded with: URLEncoder.encode(reqString, UTF-8); others not, so in my filter those that are not

[HttpClient] HttpClient 4.0-rc2

2009-07-15 Thread Oleg Kalnichevski
Folks Please test your applications against 4.0-rc2 and report bugs if found. There have been three fixes since 4.0-rc1 * [HTTPCLIENT-860] HttpClient no longer converts redirects of PUT/POST to GET for status codes 301, 302, 307, as required by the HTTP spec. * [HTTPCLIENT-859]

[HttpCore] HttpCore 4.1-alpha1 preview

2009-07-15 Thread Oleg Kalnichevski
Folks Please find a few minutes to review HttpCore 4.1-alpha1 release packages and release notes Packages: http://people.apache.org/~olegk/httpcore-4.1-alpha1-preview/ Release notes: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Oleg

Re: RV: NO_HTTP_RESPONSE_EXCEPTION

2009-07-22 Thread Oleg Kalnichevski
, configurations, ...). Anything you need. Thanks in advance, Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: s?bado, 07 de febrero de 2009 14:08 Para: HttpClient User Discussion Asunto: Re: NO_HTTP_RESPONSE_EXCEPTION sebb wrote: On 06/02/2009

Re: RV: NO_HTTP_RESPONSE_EXCEPTION

2009-07-22 Thread Oleg Kalnichevski
. Last time it was impossible to send it to you. If you don't receive it, tell how I can send it. Thanks for your time, Oleg. Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: mi?rcoles, 22 de julio de 2009 14:41 Para: HttpClient User

Application Period for Travel Assistance to ApacheCon US 2009 Opens Soon

2009-07-22 Thread Oleg Kalnichevski
The Travel Assistance Committee is taking in applications for those wanting to attend ApacheCon US 2009 (Oakland) which takes place between the 2nd and 6th November 2009. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon US 2009 who may need some

Re: Using SSLClientIOEventDispatch

2009-07-23 Thread Oleg Kalnichevski
On Wed, Jul 22, 2009 at 06:41:26PM -0400, Peter Soles wrote: I checked the archives of the list - coudn't find the answer to my question. Apologies if I missed something. I'm writing a simulator that will simulate many clients long polling the same server. The server requires SSL so I'm

Re: Using SSLClientIOEventDispatch

2009-07-23 Thread Oleg Kalnichevski
connections using a connection manager of some sort: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClientConnManagement.java Hope that clarifies the problem somewhat. Oleg On Thu, Jul 23, 2009 at 7:36 AM, Oleg

Re: [HttpClient] HttpClient 4.0-rc2

2009-07-24 Thread Oleg Kalnichevski
On Thu, Jul 23, 2009 at 11:53:36PM +0100, sebb wrote: On 15/07/2009, Oleg Kalnichevski ol...@apache.org wrote: Folks Please test your applications against 4.0-rc2 and report bugs if found. There have been three fixes since 4.0-rc1 * [HTTPCLIENT-860] HttpClient no longer converts

Re: [HttpClient] HttpClient 4.0-rc2

2009-07-24 Thread Oleg Kalnichevski
? Alternatively, perhaps the field could be made volatile? I see no good reason for changing hostname verifier after construction. Feel free to make the variable final and deprecate the setter. Oleg On 23/07/2009, sebb seb...@gmail.com wrote: On 15/07/2009, Oleg Kalnichevski ol

Re: [HttpClient] HttpClient 4.0-rc2

2009-07-24 Thread Oleg Kalnichevski
On Fri, Jul 24, 2009 at 03:01:34PM +0100, sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jul 24, 2009 at 01:59:23PM +0100, sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jul 24, 2009 at 01:07:35AM +0100, sebb wrote

Re: [HttpClient] HttpClient 4.0-rc2

2009-07-26 Thread Oleg Kalnichevski
sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jul 24, 2009 at 03:01:34PM +0100, sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jul 24, 2009 at 01:59:23PM +0100, sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org

Re: question about saving the HttpEntity Content and later reproducing it

2009-07-28 Thread Oleg Kalnichevski
Brijesh Deo wrote: Hi Folks, I have a requirement where I need to save the HttpEntity content from an HttpRequest object when it is a POST or PUT operation. I am reading the contents into a byte array and then saving it into a database table. Later at some point, I would read it from the

Re: CLOSE_WAIT on Linux

2009-07-30 Thread Oleg Kalnichevski
On Wed, Jul 29, 2009 at 09:36:20PM -0700, Gerry Woods wrote: I haven't posted here before so let me start by thanking you guys for the great work. We are using 3.0.1 in some pretty heavy production environments. A recent issue arose with a customer who had trouble during SSL handshakes.

Re: Safe close of connection with partial read of response

2009-08-04 Thread Oleg Kalnichevski
On Mon, Aug 03, 2009 at 02:51:06PM -0700, Ken Krugler wrote: BTW, I did read the section titled Ensuring release of low level resources on the http://hc.apache.org/httpcomponents-client/tutorial/html/fundamentals.html page. This recommends using abort() to clean things up, but that would

Re: When to use ConnectionKeepAliveStrategy

2009-08-04 Thread Oleg Kalnichevski
On Mon, Aug 03, 2009 at 03:33:30PM -0700, Ken Krugler wrote: Hi all, On http://hc.apache.org/httpcomponents-client/tutorial/html/ch02.html the section titled Connection keep alive strategy talks about when to implement a custom keep-alive strategy. But I thought that if a connection gets

Re: httpclient 4 + appengine work?

2009-08-07 Thread Oleg Kalnichevski
On Fri, Aug 07, 2009 at 12:10:01AM -0700, zhang99 wrote: may i know does httpclient 4 work with appengine ? I am afraid it does not. Oleg -- View this message in context: http://www.nabble.com/httpclient-4-%2B-appengine-work--tp24859934p24859934.html Sent from the HttpClient-User

Re: Setting cookie policy with HttpClient 4.0

2009-08-10 Thread Oleg Kalnichevski
On Fri, Aug 07, 2009 at 10:32:32AM -0700, Ken Krugler wrote: Hi all, I'm seeing errors in my logs relating to parsing the expires date value in a cookie: 09/08/07 10:26:46 WARN protocol.ResponseProcessCookies:137 - Invalid cookie header: Set-Cookie: IU=deleted; expires=Thu, 07 Aug 2008

[ANNOUNCEMENT] HttpComponents HttpClient 4.0 (GA) release

2009-08-13 Thread Oleg Kalnichevski
The HttpComponents project is pleased to announce the first stable (GA) release of Apache HttpClient 4.0 HttpClient 4.0 represents a complete, ground-up redesign and almost a complete rewrite of the HttpClient 3.x codeline. This release finally addresses several design flaws that existed since

Re: reading entity bytes from a HttpEntityEnclosingRequest in case of large content size

2009-08-17 Thread Oleg Kalnichevski
On Sun, Aug 16, 2009 at 11:49:20PM +0530, Brijesh Deo wrote: Hi, I am implementing an http reverse proxy, somewhat on the lines of the sample implementation - ElementalReverseProxy with some modifications. I am using HttpCore classes to implement the http server (using

Re: MaxTotalConnections and MaxConnectionPerRoute in case of httpclient instance per target host

2009-08-17 Thread Oleg Kalnichevski
On Mon, Aug 17, 2009 at 12:37:37AM +0530, Brijesh Deo wrote: Hi, I am implementing an http reverse proxy, somewhat on the lines of the sample implementation - ElementalReverseProxy with some modifications. I am using HttpCore classes to implement the http server (using

Re: MaxTotalConnections and MaxConnectionPerRoute in case ofhttpclient instance per target host

2009-08-17 Thread Oleg Kalnichevski
-Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Monday, August 17, 2009 3:08 PM To: HttpClient User Discussion Subject: [Junk released by Allow List] Re: MaxTotalConnections and MaxConnectionPerRoute in case ofhttpclient instance per target host On Mon

Re: [Junk released by Allow List] Re: MaxTotalConnections and MaxConnectionPerRoute in caseofhttpclient instance per target host

2009-08-17 Thread Oleg Kalnichevski
Brijesh Deo wrote: Thanks for providing a proper understanding of the subject matter here. I will try to give it a shot by using one HttpClient instance and see how it goes. Otherwise, as you have suggested, multiple HttpClient instances using one shared connection manager instance looks very

Re: HttpClient

2009-08-19 Thread Oleg Kalnichevski
On Tue, Aug 18, 2009 at 09:01:38PM +0300, aljesco wrote: Hello all! I'm using HttpClient 4.0 and got some error. There's code I tested * DefaultHttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(http://yandex.ru;); HttpResponse response =

Re: Weird characters in the stream

2009-08-19 Thread Oleg Kalnichevski
On Tue, Aug 18, 2009 at 11:55:15AM -0700, droidin.net wrote: I'm trying to read a partial data from the HTML file. So I have this code that returns me InputSource for my SAX parser InputSource is = null; HttpEntity entity = response.getEntity(); if (entity == null) {

Re: HttpClient

2009-08-19 Thread Oleg Kalnichevski
On Wed, Aug 19, 2009 at 01:00:23PM +0300, Al Jesco wrote: 2009/8/19 Oleg Kalnichevski ol...@apache.org: On Tue, Aug 18, 2009 at 09:01:38PM +0300, aljesco wrote: Hello all! I'm using HttpClient 4.0 and got some error. There's code I tested * ? ? ?DefaultHttpClient httpclient

Re: HttpClient

2009-08-19 Thread Oleg Kalnichevski
On Wed, Aug 19, 2009 at 01:05:51PM +0300, Al Jesco wrote: 2009/8/19 Oleg Kalnichevski ol...@apache.org: On Wed, Aug 19, 2009 at 01:00:23PM +0300, Al Jesco wrote: 2009/8/19 Oleg Kalnichevski ol...@apache.org: On Tue, Aug 18, 2009 at 09:01:38PM +0300, aljesco wrote: Hello all! I'm

Re: v4.0 on Google App Engine?

2009-08-21 Thread Oleg Kalnichevski
Isao Isaac Saito wrote: Hi all, has anyone succeeded in running v4.0 on GAE? Although I found the following ML thread that concludes HttpClient doesn't work on GAE without referring to the version, I'm still wondering if the situation has improved with v4.0 or not. The situation cannot

Re: Best practise to add SOCKS proxy support?

2009-08-24 Thread Oleg Kalnichevski
On Sun, Aug 23, 2009 at 11:57:56PM +0200, Peter Paul wrote: Hello, I'm about add SOCKS proxy support to an application that uses HttpClient and it's HttpProxy capabilities. While Http Proxy support is given by the HttpClient API, I could not find said thing for SOCKS, so I found that it would

Re: Best practise to add SOCKS proxy support?

2009-08-25 Thread Oleg Kalnichevski
On Tue, Aug 25, 2009 at 01:25:21AM +0200, Peter Paul wrote: On Mon, 24 Aug 2009 10:35:09 +0200 Oleg Kalnichevski ol...@apache.org wrote: On Sun, Aug 23, 2009 at 11:57:56PM +0200, Peter Paul wrote: Hello, I'm about add SOCKS proxy support to an application that uses HttpClient

Re: Downloading HTML frameset pages via HTTPClient

2009-08-25 Thread Oleg Kalnichevski
On Tue, Aug 25, 2009 at 06:30:40AM -0700, Ken Krugler wrote: Hi Melroyr, On Aug 25, 2009, at 3:19am, melroyr wrote: Ken, Thanks for your response. If you look at the source at http://flyer.harristeeter.com/HT_eVIC/ThisWeek/ReviewAllSpecials.jsp?ToCat=0 thru 13, the page changes its

Re: Weird double entries in archive file?

2009-08-26 Thread Oleg Kalnichevski
On Mon, Aug 24, 2009 at 09:14:33AM +, Florent Georges wrote: Hi, I've just noticed the TAR GZ archive of HTTP Client 4.0 with deps httpcomponents-client-4.0-bin-with-dependencies.tar.gz contains double entries (at least lib/commons-logging-1.1.1.jar and lib/httpcore-4.0.1.jar seem

Re: ThreadSafeClientConnManager and java.net.SocketException: Connection reset

2009-08-27 Thread Oleg Kalnichevski
On Wed, Aug 26, 2009 at 01:19:17PM -0700, droidin.net wrote: I define HttpClient in 2 different ways: 1. Plain vanilla: client = new DefaultHttpClient(); 2. Thread safe: private DefaultHttpClient getThreadSafeHttpClient() { HttpParams params = new BasicHttpParams();

Re: ThreadSafeClientConnManager and java.net.SocketException: Connection reset

2009-08-27 Thread Oleg Kalnichevski
droidin.net wrote: Hi Oleg, It's ether nibble or I'm slow - I only got word This from your reply. If I'm doing these 2 lines wrong how should I do it? Regards, Bo Sorry about being so terse. You certainly do not want PlainSocketFactory to be registered as a socket factory for the HTTPS

Re: strange behaviour of getResponseBodyAsStream()

2009-08-30 Thread Oleg Kalnichevski
Hannes Fiedler wrote: Oleg Kalnichevski wrote: Hannes Fiedler wrote: I had a strange behaviour of httpclient-3.1: When using getResponseBodyAsStream(), my software crashed due to a IOException caused by an attempted read-op on a closed stream, status code of the response was okay (200

Re: Best practise to add SOCKS proxy support?

2009-09-01 Thread Oleg Kalnichevski
On Mon, Aug 31, 2009 at 06:59:05PM +0200, Peter Paul wrote: On Sat, 29 Aug 2009 11:45:50 +0200 Oleg Kalnichevski ol...@apache.org wrote: (1) HttpClient 3.1 HttpClient client = new HttpClient(); ProtocolSocketFactory mysf = new DefaultProtocolSocketFactory(); Protocol myhttp = new

Re: Charset trouble, questionmarks

2009-09-02 Thread Oleg Kalnichevski
On Wed, Sep 02, 2009 at 10:22:16AM +0200, Magnus Olstad Hansen wrote: Hello, I'm using HttpClient 4.0 to download a webpage the same way as shown in one of the examples. This is my method to return a webpage as a string: protected static String leechUrl(String url) throws

Re: Charset trouble, questionmarks

2009-09-02 Thread Oleg Kalnichevski
to be used for byte to char conversion as a parameter. Oleg On Wed, Sep 2, 2009 at 11:41 AM, Oleg Kalnichevski ol...@apache.org wrote: On Wed, Sep 02, 2009 at 11:39:35AM -0400, NBW wrote: What about passing -Dfile.encoding=utf-8? HttpClient does not use system properties (per design

Re: HttpClient 3.1 to 4.0 migration

2009-09-02 Thread Oleg Kalnichevski
Gerald Turner wrote: Hello HttpClient Users List, I have spent the last couple days upgrading a dozen applications from HttpClient 3.1 to 4.0. First off, I must say that I'm very pleased that MultiThreadedHttpConnectionManager (now ThreadSafeClientConnManager) is using synchronization rather

Re: SynchBasicHttpParams and ImmutableHttpProcessor missing

2009-09-03 Thread Oleg Kalnichevski
On Thu, Sep 03, 2009 at 05:54:33AM -0700, HockeyDave wrote: The NIO httpcomponents client tutorial (???Basic non-blocking HTTP client) uses 2 classes which are missing from 4.0.1 release. so downloaded 4.1-SNAPSHOT. Classes are still missing. Downloaded the two files (found them w/

Re: HttpClient 3.1 to 4.0 migration

2009-09-04 Thread Oleg Kalnichevski
On Thu, Sep 03, 2009 at 03:04:33PM -0700, Gerald Turner wrote: Oleg Kalnichevski ol...@apache.org writes: Gerald Turner wrote: ??? Releasing connections has increased the amount of code (finally block logic) that client applications need: HttpClient 3.x: HttpMethod method

Re: SynchBasicHttpParams and ImmutableHttpProcessor missing

2009-09-04 Thread Oleg Kalnichevski
HockeyDave wrote: Hi Oleg. Still struggling a bit with the NIO example. How would one get the Response Entity Output? HttpContext context = conn.getContext(); BasicHttpRequest httpget = new BasicHttpRequest(GET, /, HttpVersion.HTTP_1_1); RequestHandle

Re: Charset trouble, questionmarks

2009-09-05 Thread Oleg Kalnichevski
MaGGE wrote: Hello again Ken, Sorry to lag behind on the replies - work is busy these days... :) Seems you're right. I've made a custom ResponseHandler class to be able to dump the raw output from HttpClient. However, I'd used FileWriter/BufferedWriter to dump to my file. This must've tried to

Re: Charset trouble, questionmarks

2009-09-06 Thread Oleg Kalnichevski
Magnus Olstad Hansen wrote: Hello Oleg, Sorry - I only tried what seemed easiest to me first here. Today is the first day I've had the time to look into this again. A wire + context log should be attached to this mail. Hope this can clearify what is going on. PS! I'm pretty sure that

Re: Httpclient 4.0 vs 3.1

2009-09-06 Thread Oleg Kalnichevski
Roger Studner wrote: I was wondering if anyone has ever discovered how to redo the 3.1 SSL example that went (very tersely) as follows: Protocol easyhttps = new Protocol(https, new EasySSLProtocolSocketFactory(), 443); Protocol.registerProtocol(https, easyhttps); I tried this: //

Re: Read attached file from webpage

2009-09-09 Thread Oleg Kalnichevski
On Tue, Sep 08, 2009 at 08:55:34PM -0700, caymanag wrote: I am trying to figure out how to use HttpClient to read a file that is presented as an attachment on a web page. Below are the slightly simplified request and response headers. See in the response headers that the file is specified

Re: Read attached file from webpage

2009-09-09 Thread Oleg Kalnichevski
On Wed, Sep 09, 2009 at 04:45:52AM -0700, caymanag wrote: The log is the (DEBUG) messages that I'm getting from my session using log4j. From the Content-disposition: attachment; filename=myfile.csv response header I see that there is a file myfile.csv to be downloaded, I just don't know how

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Oleg Kalnichevski
On Fri, Sep 11, 2009 at 04:29:20PM +0200, Olivier Lamy wrote: Hi Folks, I have added a comment and attached a jvm error pid. Is there any know issue regarding deadlock issue with the final 4.0 ? (with heavy load). Thanks -- Olivier Olivier, Yes, I am prerry certian the issue has been

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Oleg Kalnichevski
, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # sharedRuntime.cpp:461 smells like a trouble to me Oleg 2009/9/11 Oleg Kalnichevski ol...@apache.org: On Fri, Sep 11, 2009 at 04:29:20PM +0200, Olivier Lamy wrote: Hi Folks, I have added a comment and attached a jvm error

Re: How to get local address after successful http connection

2009-09-18 Thread Oleg Kalnichevski
On Thu, 2009-09-17 at 14:38 +0800, Micky wrote: Dear all, After a successful http connection, I want to get the local address with the target connection. But I don’t know how to get it. Any suggestion? I know there is HttpRoute will be determined when a HttpClient.execute(),

Re: HttpClient 3.1 PutMethod - HttpClient 4 HttpPut

2009-09-18 Thread Oleg Kalnichevski
On Fri, 2009-09-18 at 07:48 -0700, Mario Becker-Reinhold wrote: Hi Folks, I'm trying to upgrade some code from HttpClient 3.1 to version 4. The old code that does a simple PUT in 3.1 is: HttpClient httpClient = new HttpClient(); PutMethod put = new PutMethod(this.getArchiveURL_Put()+ /

Re: Configuring Parameters Per Host/Route

2009-09-21 Thread Oleg Kalnichevski
On Sun, 2009-09-20 at 20:23 +0200, John Kirollos wrote: Hello There I'm new to HttpClient 4.0 in specific and to HttpClient in general, and trying to figure out how to configure some parameters per host (I guess I can say route interchangeably with host). It's obvious for me how to

Re: HttpGet seems to be cached - Response do not change

2009-09-21 Thread Oleg Kalnichevski
On Sun, 2009-09-20 at 23:05 +0200, mz8lenvp05gyb78 wrote: Hello everyone, i got a problem with the HttpClient Component. I poll a website every 5 minutes to track the changes of it. But when it changes the reponse string does not change. I'm using a class which implements the runnable

Re: AJAX using HttpClient

2009-09-21 Thread Oleg Kalnichevski
On Mon, 2009-09-21 at 16:37 +0700, Frans Thamura wrote: hi there i dunno is this the right mailing list to work with i am seeking a poster like (plugin of Firefox) that can test my REST server i found there is Httpput that we can use to send, any smart idea to work with HttpClient?

Re: Last redirect URL

2009-09-22 Thread Oleg Kalnichevski
On Mon, Sep 21, 2009 at 05:14:05PM -0700, Ken Krugler wrote: On Sep 21, 2009, at 2:30pm, droidin.net wrote: I have rather simple HttpClient 4 code that calls HttpGet to get HTML output. The HTML returns with scripts and image locations all set to local (e.g. /images/foo.jpg ) so I need

Re: French accents problem while sending postMethod

2009-09-22 Thread Oleg Kalnichevski
On Tue, Sep 22, 2009 at 11:35:32AM +0200, Nicolas Beucler wrote: Hi All, Seems that i have some problem to send parts containing non ascii characters using multi part post request. What i do is : [CODE] FilePartSource fileSource = new FilePartSource(f); Part[] parts = { new

Re: French accents problem while sending postMethod

2009-09-22 Thread Oleg Kalnichevski
On Tue, Sep 22, 2009 at 02:54:44PM +0200, Nicolas Beucler wrote: So i suppose, then that it's the other side that doesen't decode correctly the XML string? Most likely. Oleg Regards. Nicolas Oleg Kalnichevski a ??crit : On Tue, Sep 22, 2009 at 11:35:32AM +0200, Nicolas Beucler wrote

Re: French accents problem while sending postMethod

2009-09-22 Thread Oleg Kalnichevski
more participation from the community. Oleg -- Ken On Sep 22, 2009, at 5:50am, Oleg Kalnichevski wrote: What's happen is that the Mes r?f thing becomes Mes r[0xc3][0xa9]f and unfortunatly doesn't work with the server side. This is a perfectly valid UTF-8 representation

Re: French accents problem while sending postMethod

2009-09-22 Thread Oleg Kalnichevski
Ken Krugler wrote: Hi Oleg, On Sep 22, 2009, at 7:07am, Oleg Kalnichevski wrote: On Tue, Sep 22, 2009 at 06:46:22AM -0700, Ken Krugler wrote: OK, either Oleg gets up even earlier than me, or he's not on west coast time :) No, I am not :) I guess henceforth I will be answering HttpClient

Re: HttpCore NIO and recycling connections

2009-09-22 Thread Oleg Kalnichevski
, Sep 22, 2009 at 5:06 PM, Oleg Kalnichevski ol...@apache.org wrote: Peter Soles wrote: Thanks for the response and the pointers to your code. I'll definitely take a look! I'm not clearing the read event notifications in the persistent connection. In my code, the connection is born when I get

Re: Warning: SimpleHttpConnectionManager being used incorrectly

2009-09-23 Thread Oleg Kalnichevski
On Wed, Sep 23, 2009 at 05:53:03PM +0200, Christoph Jaehnigen wrote: On Wed, Sep 23, 2009 at 17:20, sebb seb...@gmail.com wrote: Does the code do what the error message says? The error message says it all really... That's the point: I do not explicitly use threading, not in Java and

Re: HttpClient 4.0

2009-09-23 Thread Oleg Kalnichevski
visualize wrote: Hello, I'm trying to port my application to use HttpClient 4.0 instead of version 3.0 I make a substantial number of HTTP-gets and used to use aMultiThreadedHttpConnectionManager to setup a pool and retrieve clients. Let's say I want to get some stuff from

Re: Using HttpClient to mimic a POST network request

2009-09-24 Thread Oleg Kalnichevski
Yan Cheng Cheok wrote: I realize the reason why it doesn't work is because, HttpClient perform URL encoding explicitly on my payload. If I try to try { Socket socket = new Socket(www.xxx.com, 2); PrintWriter out = new PrintWriter(socket.getOutputStream(), true); final String

Re: Is HttpClient suitable for the following task?

2009-09-24 Thread Oleg Kalnichevski
Yan Cheng Cheok wrote: I try to talk to a server, by telneting to it, and send the following command through telnet terminal : POST /%5bvUpJYKw4QvGRMBmhATUxRwv4JrU9aDnwNEuangVyy6OuHxi2YiY=%5dImage? HTTP/1.1 Content-Type: application/x-www-form-urlencoded Content-Length: 164

Re: Parallel Webcrawler Implementation

2009-09-24 Thread Oleg Kalnichevski
sebb wrote: On 24/09/2009, Ken Krugler kkrugler_li...@transpac.com wrote: Hi Tobi, First, I'd suggest getting and reading through the sources of existing Java-based web crawlers. They all use HttpClient, and thus would provide much useful example code: Nutch (Apache) Droids (Apache)

Re: HttpClient with ssl

2009-09-27 Thread Oleg Kalnichevski
Generally, this kind of practice is strongly discouraged for security reasons. Oleg On Sep 27, 2009, at 2:02 PM, Oleg Kalnichevski wrote: 2) I wasn't sure which factory I should be using. SecureProtocolSocketFactory

Re: HTTPClient 3.1 Post method runs too slowly at some client's environments.

2009-09-29 Thread Oleg Kalnichevski
crazytazo wrote: Hi, I am developing an Applet with HTTPClient 3.1 I love the library, so thanks you guys for making that. My Applet have worked very well. However, I faced to a problem today. For some environments, HTTPClient’s POST method runs too slowly. There was no firewall. I dumped the

Re: log scope for wire logging

2009-10-10 Thread Oleg Kalnichevski
Adrian Cole wrote: I noticed a change in the scopes used for wire logging in HC 4.0: DefaultClientConnection private final Log headerLog = LogFactory.getLog(org.apache.http.headers); private final Log wireLog = LogFactory.getLog(org.apache.http.wire); I'm sure there's a good reason to

Re: [4.0] How does HttpClient handle 'Unexpected end of file from server' errors?

2009-10-12 Thread Oleg Kalnichevski
Andrew Thorburn wrote: I'm currently using some legacy code which sends/receives XML from one of our partners. While this normally works just fine, we've recently been getting errors of the form java.net.SocketException: Unexpected end of file from server. I have no idea why they're occurring,

Re: parsing uri problem with httpclient 3.1

2009-10-12 Thread Oleg Kalnichevski
Kalbagilmath, Vishwanath (Communication Media Solution) wrote: Hello, I am facing URI parse problem with httpclient 3.1. The URI I have is (http://hostname/selection.php?type[]=OFFtype[]=PA). After going through 3.1 code (URI.java), I notice that, in parseUriRequest() method, the query is

Re: Effectively disabling stale connection check

2009-10-13 Thread Oleg Kalnichevski
Tony Poppleton wrote: Hi, I am eager to squeeze the most performance out of my usage of HttpClient 4.0 and have been reading the archives where it was suggested to disable the stale connection check. I have done this, and it does indeed significantly improve performance, however I am now

Re: Effectively disabling stale connection check

2009-10-14 Thread Oleg Kalnichevski
describing in details what needs to be done in order to make the stale connection check unnecessary. Cheers Oleg Thanks again, Tony Oleg Kalnichevski wrote: Tony Poppleton wrote: Hi, I am eager to squeeze the most performance out of my usage of HttpClient 4.0 and have been

Re: HttpClient.setConnectionTimeout disappeared in Release 4.0

2009-10-15 Thread Oleg Kalnichevski
Maximilian Eberl wrote: Thanks a lot. This should be mentioned in the 4.0 tutorial. Max Max, You are very welcome to contribute more content for the tutorial. Oleg - To unsubscribe, e-mail:

Re: HttpClient 4.0. SocketTimeoutException and RST signal problem

2009-10-17 Thread Oleg Kalnichevski
tompra wrote: Hi, I have problem with RST signal from instance of HttpClient that invokes a SocketTimeoutException: Read Timeout. This is because HttpClient automatically closes connections that time out on an I/O operation. In an attachement there is an image of network communication

Re: does not seem to be getting all the cookie

2009-10-25 Thread Oleg Kalnichevski
Randy Paries wrote: Hello, in my client i am going to a page and then doing the following?: Cookie[] cookies = client.getState().getCookies(); System.out.println(Present cookies: ); for (int i = 0; i cookies.length; i++) { System.out.println(

Re: SO_TIMEOUT on a request level

2009-10-25 Thread Oleg Kalnichevski
Moshe Ben-Shoham wrote: Hi, The scenario is as follows: I'm doing two consecutive requests to the same host, using a multi-threaded (or thread safe) connection pool manager. The first invocation has a timeout of 10s and the second has a timeout of 30s. In version 3.1 of HttpClient all

Re: using HttpClient4.0 to retrieve files from a website.

2009-10-26 Thread Oleg Kalnichevski
nagamallika.gunt...@belgacom-ics.com wrote: Thanks for the response. I have changed my code as suggested in http://hc.apache.org/httpcomponents-client/ntlm.html and now, I just have the following message: HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to

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