Re: Performance Issues with Transfer-Encoding chunked

2007-12-18 Thread Oleg Kalnichevski
On Tue, 2007-12-18 at 05:07 -0800, vzs64 wrote: > Ran the test with HttpClient 4.0. Download time is still high 76.3 sec > > With HttpClient 3.1 > - Disabling Chunking (by setting HTTP1.0) > - Download time - 77 secs > - Headers returned by server > Date: Tue,

Re: httpcore post parameter

2007-12-18 Thread Oleg Kalnichevski
On Tue, 2007-12-18 at 15:25 +0100, Matthijs Bierman wrote: > Hi Roland, > > Appearantly it adds the functionality I need. I had not realized > parameters (which seem pretty basic, or "core" to me) would not be in > the HttpCore package. Matthijs URL coding would require dependency on Commons Co

Re: Performance Issues with Transfer-Encoding chunked

2007-12-18 Thread Oleg Kalnichevski
vzs64 wrote: (2) What makes you think this problem has anything to do with HttpClient in the first place? There is no evidence of what so ever that the performance degradation is due to the client side. IE 7.0 takes about 16 secs to download the main page http://www.reuters.com/artic

Re: Save cookies to disk

2007-12-19 Thread Oleg Kalnichevski
On Tue, 2007-12-18 at 21:26 +, jdu jdass wrote: > Hi, > > I'm working with httpclient 4 and i need save cookies to my hard disk. I've > readed something about ModuleCookie, but I think it's for httpclient 3. > does exists any way to write cookies to hard disk with httpclient 4?? > You can

Re: SSL and concurrency

2007-12-22 Thread Oleg Kalnichevski
On Fri, 2007-12-21 at 20:43 +, Christiaan Lamprecht wrote: > Hallo all, > > Just a quick question on SSL, MultiThreadedHttpConnectionManager and > Keep-Alive if anyone can help. > > > I've been experimenting with the MultiThreadedExample on the > HTTPClient website > (http://svn.apache.org/

Re: how do I close connections on HttpClient 4.x?

2007-12-27 Thread Oleg Kalnichevski
On Thu, 2007-12-27 at 16:00 -0500, Tim Julien wrote: > All, > Hi Tim > I am in the process of migrating from HttpClient 2.x to HttpClient 4.x. > (This is for Limewire) > > Is there a migration guide anywhere that helps you go from the "old" > stack to the new one based on HttpCore? > There

Re: Redirected - but where? HttpClient 4

2008-01-06 Thread Oleg Kalnichevski
On Sun, 2008-01-06 at 04:50 -0800, MaGGE wrote: > Hello, > > I've just started using HttpClient for a little util I'm making. I'm letting > it handle_redirects=true, but I need to process the URL it's been redirected > to. How can I find the "current URL" after I've executed a request that was >

RE: FW: Proxy Authentication Required

2008-01-08 Thread Oleg Kalnichevski
On Tue, 2008-01-08 at 18:08 +0300, Fadi M. Maali wrote: > Hi, > > Thanks a lot for your suggestions. It seems that I am now able to pass > the NTLM authentication, but there still some error. > More specifically, > When I use *method.setFollowRedirects(true);* I get HTTP/1.1 407 Proxy > Authenti

Re: closing idle connections

2008-01-08 Thread Oleg Kalnichevski
On Tue, 2008-01-08 at 12:02 -0500, Tim Julien wrote: > Hello, > > Any recommendations on closing idle connections? > > I see there is: > > org.apache.http.conn.ClientConnectionManager.closeIdleConnections(long) > > (which is implemented in TSCCM and SCCM), but this method is not called > anyw

RE: FW: Proxy Authentication Required

2008-01-09 Thread Oleg Kalnichevski
On Wed, 2008-01-09 at 14:46 +0300, Fadi M. Maali wrote: > Hi, > I posted below a part of the log. As it is too large I tried to put the > important parts of it -- wish I am really doing this :) -- > The log corresponds to the case where follow redired is set to true. > Here is the log: > Fadi,

Re: FBA

2008-01-11 Thread Oleg Kalnichevski
On Thu, 2008-01-10 at 16:46 -0500, Michael Prichard wrote: > Anyone using HTTPClient to authenticate with exchange using FBA? Any > hints or examples how? > By FBA you mean form-based authentication, I assume? Then Client HTTP Programming Primer is your friend: http://wiki.apache.org/jakart

Re: Trying to Authenticate to MS Exchange 2003

2008-01-11 Thread Oleg Kalnichevski
On Thu, 2008-01-10 at 16:06 -0500, Michael Prichard wrote: > Okfigured this one out. Add this: > > // Sets whether authentication should be attempted preemptively. > client.getParams().setAuthenticationPreemptive( true ); > > > And it seems to work perfectly. No

Re: Trying to Authenticate to MS Exchange 2003

2008-01-11 Thread Oleg Kalnichevski
" > > > Does the "WWW-Authenticate: NTLM[\r][\n]" mean that it has NTLM auth? > > Thanks. > Michael, What's the point in responding to your questions if you do not read my responses? The server does seem to support NTLM (not a very big surprise given the fact i

Re: Trying to Authenticate to MS Exchange 2003

2008-01-11 Thread Oleg Kalnichevski
On Fri, 2008-01-11 at 09:24 -0500, Michael Prichard wrote: > What does this mean? Does it mean the username and password are > being sent on an open wire? > That is exactly what I was trying to tell you in my previous post. Oleg > On Jan 11, 2008, at 9:12 AM, Oleg Kalnic

Re: Trying to Authenticate to MS Exchange 2003

2008-01-11 Thread Oleg Kalnichevski
reemptively you ARE NOT using NTLM. (I guess it's fine as long as you are aware of this fact and its security implications) Oleg > Thanks! > > On Jan 11, 2008, at 7:08 AM, Oleg Kalnichevski wrote: > > > > > On Thu, 2008-01-10 at 16:06 -0500, Michael Prichard wrote

Re: SSL and concurrency

2008-01-11 Thread Oleg Kalnichevski
On Fri, 2008-01-11 at 16:10 +, Christiaan Lamprecht wrote: > Thanks Ronald, > > After much reading and looking through the dev mailing list it seems > that "pipelining" is what I was looking for. Though saying that, it > does not seem to be very well supported in general. MozillaZine seems >

Re: Trying to Authenticate to MS Exchange 2003

2008-01-11 Thread Oleg Kalnichevski
ops up a window..very much like you see when > you set up a .htaccess with BASIC auth. Hmmmany libs out there > that support NTLM? > http://jcifs.samba.org/ Oleg > On Jan 11, 2008, at 9:27 AM, Oleg Kalnichevski wrote: > > > > > On Fri, 2008-01-11 at 09:24 -05

Re: FBA

2008-01-11 Thread Oleg Kalnichevski
you some beers :) > Beer is always welcome. Cheers Oleg > Thanks! > Michael > > On Jan 11, 2008, at 2:36 PM, Oleg Kalnichevski wrote: > > > > > On Fri, 2008-01-11 at 14:30 -0500, Michael Prichard wrote: > >> I am doing it like this: > >> > >&

Re: FBA

2008-01-11 Thread Oleg Kalnichevski
On Fri, 2008-01-11 at 13:39 -0500, Michael Prichard wrote: > Hello Oleg! > > This helped a lot! Thanks so much. I do have a question on how > HTTPClient handles cookies. If you look at this Debug info: > > 2008/01/11 13:31:18:443 EST [DEBUG] header - << "Set-Cookie: > sessionid=bf1658c3-f

Re: FBA

2008-01-11 Thread Oleg Kalnichevski
I thought that would still keep using HTTPS. > > Thanks! > And I bet your custom socket factory does not implement SecureProtocolSocketFactory, does it? http://hc.apache.org/httpclient-3.x/xref/org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html Oleg >

Re: Max connections per host

2008-01-22 Thread Oleg Kalnichevski
On Sun, 2008-01-20 at 15:08 -0800, David Byrne wrote: > Is there a way in Client 4 to override the default maximum number of > connections per host? I know that set it per host using MAX_HOST_CONNECTIONS, > but that can be awkward. I'm looking to change the global setting. > Hi David, There i

Re: can I Set accept-encoding on httpclient level?

2008-01-22 Thread Oleg Kalnichevski
On Mon, 2008-01-21 at 14:52 +0300, Fadi M. Maali wrote: > Hi all, > > > > I am using a library that in turns uses Apache HttpClient. This library > gives access to the instance of HttpClient it uses (so I was able to set > proxy,credential...) but no access to the HttpMethod instance it uses.

[ANNOUNCEMENT] HttpComponents HttpCore 4.0-beta1 Released

2008-01-24 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce the release of HttpComponents HttpCore 4.0-beta1. This release can be considered a major milestone, as it marks the end of API instability in HttpCore. As of this release the API compatibility between minor releases in 4.x codeline will be m

Re: HttpMethodBase.getResponseBodyAsString() analog?

2008-01-25 Thread Oleg Kalnichevski
On Thu, 2008-01-24 at 15:55 -0500, Tim Julien wrote: > in the new 4.0 stack, is there an analog to > org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString()? > Hi Tim, This should do the trick HttpEntity entity = response.getEntity(); if (entity != null) { String s = EntityUt

Re: [HttpClient 3.1] "The operation timed out" on close

2008-01-25 Thread Oleg Kalnichevski
On Thu, 2008-01-24 at 17:26 +0100, Cyril Jaquier wrote: > Hi all, > > We are using HttpClient 3.1 on PC and PDA (Windows Mobile). On PDA, we > get from time to time InterruptedIOException. > > java.io.InterruptedIOException: The operation timed out > at java.net.SocketImpl.receiveStreamIm

Re: [HttpClient 3.1] "The operation timed out" on close

2008-01-25 Thread Oleg Kalnichevski
On Fri, 2008-01-25 at 14:41 +0100, Cyril Jaquier wrote: > Hi Oleg, > > Thank you for your reply. > > > You do not have to close the input stream returned by > > #getResponseBodyAsStream, as it is not guaranteed to close the > > underlying socket (in fact #releaseConnection() will be called behin

Re: AbstractVerifier in 4.x (was Invalid SSL Certs)

2008-01-30 Thread Oleg Kalnichevski
On Wed, 2008-01-30 at 09:59 -0800, David Byrne wrote: > A quick follow-up on AbstractVerifier. Is there a reason that the constructor > isn't set to public? It makes it difficult to extend outside of the package. > No reason. I made the constructor public in the SVN trunk. Oleg > Thanks, > D

Re: AbstractVerifier in 4.x (was Invalid SSL Certs)

2008-01-30 Thread Oleg Kalnichevski
On Wed, 2008-01-30 at 12:37 -0800, David Byrne wrote: > Julius, > > Thanks for replying. I saw AllowAllHostnameVerifier, but decided to write my > own so I could report on the errors. However, this only solves part of my > problem. Even if the verifier passes the cert along, the TrustManager us

Re: MTHCM Connection Pool re-use

2008-01-30 Thread Oleg Kalnichevski
On Wed, 2008-01-30 at 18:10 +, Christiaan Lamprecht wrote: > Hi all, > > The question is on how to permanently close a connection in the MTHCM > connection pool. > > I'm using the MultiThreadedHttpConnectionManager and each spawned > thread makes a couple of "httpClient.executeMethod(method)

Re: NTLM authentication stops working after upgrade to SP2

2008-01-31 Thread Oleg Kalnichevski
On Thu, 2008-01-31 at 12:18 +0100, Support wrote: > Hi, > > strange problem; maybe any of you have had a similar experience: after > upgrading a server to windows xp sp2, NTLM authentication with > httpclient 3.0.1 has stopped working.. no changes have been made on the > client side.. The err

Re: HttpClient 4.0 alpha 2 and HttpCore 4 beta 1

2008-02-04 Thread Oleg Kalnichevski
On Mon, 2008-02-04 at 16:47 +, Lorenzo Moretti wrote: > Hi, > > I am currently using both the HttpClient (issuing GET requests) and HttpCore > (using nio and ssl extensions). I would like to use the latest HttpCore but > the compatible client is not released yet. However I think that the ne

Re: HttpClient4 alpha3 release?

2008-02-20 Thread Oleg Kalnichevski
On Tue, 2008-02-19 at 14:57 -0800, Aaron wrote: > I'm just getting into using HttpClient, and since v4 seems to be > coming along well I figured I would start my development with the > alphas and move to the beta and production when they are ready, > however I am curious as to when you will releas

Re: Can HttpCore NIO extensions support client side of Server push using multipart/x-mixed-replace

2008-02-26 Thread Oleg Kalnichevski
On Fri, 2008-02-22 at 16:41 -0500, Stephen More wrote: > I see in version 4 there will be "HttpCore NIO extensions - event > driven, non-blocking I/O". > When this is released can it be used to create the client side of a > "multipart/x-mixed-replace" message ? > There have already been a number

Re: DefaultHttpClient - getting contents of an iframe

2008-02-26 Thread Oleg Kalnichevski
On Sun, 2008-02-24 at 19:00 -0400, Jeff Kerr wrote: > Hi there, I've had some luck following the example at: > http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java > > to login to a web site then get a page

Re: Non-ascii filenames in Multipart POST

2008-02-26 Thread Oleg Kalnichevski
On Mon, 2008-02-25 at 16:48 +, Andy Wu wrote: > Hi, > > When making a multipart post uploading a file with a filename containing > non-ascii characters, the filename appears to be incorrect written to > the http request. > > If you look at the code, sendDispositionHeader() essentially send

Re: Resetting connections

2008-02-26 Thread Oleg Kalnichevski
On Tue, 2008-02-26 at 01:52 +, [EMAIL PROTECTED] wrote: > For a new project we're going to start using the Apache httpclient. One of > the things I've had trouble with in prior systems is that long-running > services get into states where they stop operating correctly. The solution > was us

Re: Non-ascii filenames in Multipart POST

2008-02-26 Thread Oleg Kalnichevski
braries are geared mostly towards compatibility with web browsers rather than standards compliance. If you are not willing to use HttpClient 4.0, the only thing I can think of is writing a custom request entity for Httpclient 3.x based on Apache mime4j Hope this helps Oleg > Thanks &g

[ANNOUNCEMENT] HttpComponents HttpClient 4.0-alpha3 released

2008-02-26 Thread Oleg Kalnichevski
The HttpComponents project is pleased to announce the release of HttpComponents HttpClient 4.0-alpha3. This version brings another round of API refinements and improvements in functionality. As of this release HttpClient requires Java 5 compatible runtime environment and takes full advantage of ge

Re: Multi-Threading using different host configurations

2008-02-29 Thread Oleg Kalnichevski
On Thu, 2008-02-28 at 09:24 +, Eric Cantonna wrote: > Hello everyone, > > This is my first message on the mailing list (but searches in the archives > have already helped me alot). > I'm coding some kind of data miner which works rather well now so i'm > entering the optimisation phase. >

Re: [Help] NTLM Auth fails after disabling LM hashes of passwords

2008-02-29 Thread Oleg Kalnichevski
On Thu, 2008-02-28 at 15:57 +0530, Shailesh Joshi wrote: > Hi. > > We are using HttpClient for NTLM Authentication. > > We are facing issues when we - disable the storage of LM hashes of user's > passwords. (http://support.microsoft.com/kb/299656) > > > > Following steps are followed in Win

Re: cookie or session-id is different from the same HttpClient connection?!

2008-02-29 Thread Oleg Kalnichevski
On Thu, 2008-02-28 at 17:19 +0800, micky wrote: > Dear, > > > I use the HttpClient to login some page, and it will have a cookie according > to my login. > > But when I try to access another page (needed for logon) by the same > HttpClient, the response is access denied. > > Then I print ou

Re: ntlm proxy authentication question

2008-03-07 Thread Oleg Kalnichevski
On Wed, 2008-03-05 at 14:03 -0800, John Jamison wrote: > I was ohh so close - I am attempting to code a simple app that > performs NTLM proxy authentication against a proxy server that > supports NTLM and basic authentication. > > It took me some time to determine the correct value for the Domain

Re: HttpClient v 4 Alpha 3: WARNING: Invalid use of SingleClientConnManager: connection still allocated.

2008-03-07 Thread Oleg Kalnichevski
On Thu, 2008-03-06 at 19:42 +0100, Tov Are Jacobsen wrote: > Hi, > > I'm getting a warning and an Exception stack-trace for every single > connection I do after the first one. > > I consumeContent after each request, so I think my code should be ok > ... and it works as well, but I wonder > if

Re: how to handle server auth during SSL connection through HttpClient

2008-03-07 Thread Oleg Kalnichevski
On Fri, 2008-03-07 at 08:12 +0800, [EMAIL PROTECTED] wrote: > Hi > > I'm quite satisfied with newest HttpClient (version is > httpcomponents-client-4.0-alpha3), but I encounter a difficulty now. > > It supports secure connections with a custom SSL context > (refer to > http://svn.apa

RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-07 Thread Oleg Kalnichevski
On Fri, 2008-03-07 at 13:24 +0800, micky wrote: > Dear, > > I finally figure out how to log!! > > Please help me find out why these two connections' cookie are different. > Because HttpClient does not find the first cookie when executing the second request. You are not creating a new instance

RE: cookie or session-id is different from the same HttpClient connection?!

2008-03-11 Thread Oleg Kalnichevski
On Tue, 2008-03-11 at 21:23 +0800, micky wrote: > Dear, > > I solved the cookie issues according to the article mentioned by Roland at > http://www.nabble.com/forum/ViewPost.jtp?post=15912252&framed=y > > After I "GET" a request to the server, the session will be established. > The following s

Re: properly aborting a GET method?

2008-03-11 Thread Oleg Kalnichevski
On Tue, 2008-03-11 at 11:25 -0700, George Ludwig wrote: > I am doing some web harvesting, and I'm trying to > better handle the situation where a hostile website > has my connection and then sends a few packets of > garbage data every couple of minutes. > > In the loop where I read data off the i

RE: HttpClient GET request for a file > 2G doesn't work

2008-03-11 Thread Oleg Kalnichevski
On Tue, 2008-03-11 at 11:38 -0700, sjlucas wrote: > > > Eric Cantonna wrote: > > > > Maybe I'm saying something stupid but 2G is awfully close to maxint. Maybe > > there is a count of bytes read/available somewhere that use an int and > > should use a long instead. > > > > Just an idea that cr

Re: Sending serialized object

2008-03-11 Thread Oleg Kalnichevski
On Tue, 2008-03-11 at 01:49 -0400, [EMAIL PROTECTED] wrote: > > Hi All, > > > > I'm new to HttpClient package. I've noticed that PostMethod > > class does not have a method that would return OutputStream that I > > could use to write the serialized object in to. This can be done using > > java.

RE: Sending serialized object

2008-03-11 Thread Oleg Kalnichevski
ethods/RequestEntity.html [2] http://hc.apache.org/httpclient-3.x/xref/org/apache/commons/httpclient/methods/FileRequestEntity.html > -Valli > > -Original Message----- > From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2008 12:14 PM > To: HttpClient User

Re: PostMethod now known as HttpPost

2008-03-13 Thread Oleg Kalnichevski
On Thu, 2008-03-13 at 13:10 +0100, Thorsten Scherler wrote: > Hi all, > > I am ATM trying to integrate latest httpclient into Droids. I have some > "old" code that is based on a prior version of the client. > > Some method/class name changes I found myself but some I am not sure how > to impleme

Re: Getting HttpClient to work in java applet (works ok in local app)

2008-03-17 Thread Oleg Kalnichevski
On Fri, 2008-03-14 at 19:22 -0400, Mark Wyszomierski wrote: > Hi, > > I'm trying to use HttpClient.execute() inside a java applet. > > I have it > working fine in a local application. I got my applet signed via the > instructions here: > > http://forum.java.sun.com/thread.jspa?threadID=1742

Re: Using HTTPClient to call Creative Commons Web Service

2008-03-17 Thread Oleg Kalnichevski
On Sat, 2008-03-15 at 10:00 -0700, Wayne Richards wrote: > This is probably a newbie question, as I have just started working with > the HTTPClient. > > The question is that I know that the following line placed in a browser > address line will return what I want. > > http://api.creativecommon

Re: how 2 supress contentType when using multipartentity

2008-03-17 Thread Oleg Kalnichevski
On Mon, 2008-03-17 at 11:30 -0700, ghanchakkar wrote: > Please help me. > I building a bot and trying to upload file along with form fields. when > compare the request generated by httpclient with that of microsoft browser, > I notice that httpclient is having following format after the header. >

Re: How could cause connection reset

2008-03-17 Thread Oleg Kalnichevski
On Fri, 2008-03-14 at 11:24 +0800, hjw wrote: > Hi,dear all: > I trying to use httpclient to get data from a website once in 1 second > ,but when the count of getting data is appropriate to above 300 times,the > programme will show a connection reset exception,I must keep the programme > to work

Re: Send/Receive serialized object using Apache's httpclient package

2008-03-19 Thread Oleg Kalnichevski
On Mon, 2008-03-17 at 21:22 -0400, [EMAIL PROTECTED] wrote: > Hi, > > Is it possible send/receive serialized object using HttpClient? Yes, it is > I always > get java.io.StreamCorruptedException: invalid stream header Exception. > > Here is my server side (servlet code) > > public void

Re: How could cause connection reset

2008-03-19 Thread Oleg Kalnichevski
On Tue, 2008-03-18 at 08:56 +0800, hjw wrote: > Oleg Kalnichevski , > > I am sending a new HTTP request every second and then get the > response.butusually connection reset after between 400 and 500 > times,and some can over > 1000 times. > Raymond, Connection resets can

Re: SSL Site

2008-03-19 Thread Oleg Kalnichevski
On Mon, 2008-03-17 at 22:19 -0700, Ravichan wrote: > Hi .. I followed your steps . > > I have downloaded the certificate & and stored as DER in local. > Then I tried to execute the following command. > > keytool -keystore "C:\Program Files\Java\jdk1.6.0\jre\lib\security\cacerts" > -import -alia

Re: Use variation on StrictSSLProtocolSocketFactory to check for server certs that are about to expire?

2008-03-19 Thread Oleg Kalnichevski
On Tue, 2008-03-18 at 08:29 -0700, Karr, David wrote: > Has anyone ever implemented a variation on > StrictSSLProtocolSocketFactory that could log an event if a server cert > has an expiration date within a certain margin from the current date? > If someone were to implement this, would this be th

Re: Trouble shooting informational status

2008-03-19 Thread Oleg Kalnichevski
On Wed, 2008-03-19 at 14:31 +0100, Thierry Boileau wrote: > Hello all, > > After some tests, I noticed that the HttpClient hangs in the case the > server sends a response with informational status and at the same time > does not support persistent connections. I recognize that this case is > quit

Re: The abort operation is close the socket

2008-03-24 Thread Oleg Kalnichevski
On Thu, 2008-03-20 at 10:49 +0800, hjw wrote: > Hi,all: >I find HttpMethod#abort() will close socket, but I only want to interrupt > the IO operation which is using the network. >My case is that some important message must post at once when data I get > from the same site is match some con

Re: Handling proxies and modifying request header fields

2008-03-24 Thread Oleg Kalnichevski
On Thu, 2008-03-20 at 10:31 +0530, Biju P wrote: > Hi, > > I am writing an Applet. The applet must be accessed by users from > different domains and networks which are controlled by proxies and > firewalls. > > My concerns are, > i) The applet should be able to send requests to external websit

Re: Getting the response time for multithreaded client

2008-03-24 Thread Oleg Kalnichevski
On Thu, 2008-03-20 at 18:19 +0100, Uwe Kubosch wrote: > Hi all! > > We are using the Commons HttpClient in a multithreaded application, and > frequently there are more threads trying to use the client than the > limit set by setMaxConnectionsPerHost. > > In this situation we still need to log th

Re: httpclient proxy problem

2008-03-24 Thread Oleg Kalnichevski
On Thu, 2008-03-20 at 20:38 +0200, Mehmet Kuzu wrote: > Hİ , > > I have a problem about getting response behind proxy which requires > authentication using apache httpclient . Proxy server is squid and it > uses ntlm protocol. I am new to httpclient > API and i may miss something. > > Than

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-24 Thread Oleg Kalnichevski
On Thu, 2008-03-20 at 22:05 -0700, Ankur Shah wrote: > I am using httpclient to connect to a remote server. Now for each primary > server there's also a backup failover server that i must talk to if > connection attempts with the primary server fails. To achieve > this what i'd ideally like to do

Re: Getting the response time for multithreaded client

2008-03-25 Thread Oleg Kalnichevski
/http/examples/client/ClientGZipContentCompression.java > How reliable is HttpClient 4.0 compared to HttpClient 3.1? > > Depends on your definition of reliability. 4.0 is certainly not API stable yet. Oleg > Uwe > > > On Mon, 2008-03-24 at 20:37 +0100, Oleg Kalnichevski wr

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Oleg Kalnichevski
est against the secondary host (4) when the quarantine time elapses, mark the primary host as potentially available (5) repeat Hope this helps Oleg > On Mon, Mar 24, 2008 at 12:47 PM, Oleg Kalnichevski <[EMAIL PROTECTED]> > wrote: > > > > > On Thu, 2008-03-20

Re: httpclient3 takes 3 minutes to catch IOException, why so long?

2008-03-25 Thread Oleg Kalnichevski
On Mon, 2008-03-24 at 16:44 -0700, ever friend wrote: > Greeting... > > I use httpclient3 to communicate with a web server application. > > when I test an error handling, it takes 3 minutes to catch the IOException (I > manually unplug the internet connection). I assumed it takes couple

Re: A proble with the buffer

2008-03-25 Thread Oleg Kalnichevski
On Tue, 2008-03-25 at 22:03 +0800, hjw wrote: > Hi ,all > > When I call method executeMethod() in HttpClient ,usually the methed > executed and did not call getResponseAsString() ,the length of the response > is 2K,I think this is the buffer of HttpClient , Is it right? If it is > right,how can I

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Oleg Kalnichevski
> > > > (1) execute a request against the primary host > > (2) if an exception is thrown, see whether it can be treated as > > recoverable > > (3) if so, mark the primary host as unavailable for a certain period > > time and retry the request against the seco

Re: A proble with the buffer

2008-03-26 Thread Oleg Kalnichevski
On Wed, 2008-03-26 at 08:18 +0800, hjw wrote: > Hi, Oleg > > Use #getResponseAsStream() is not ok,because once #executeMethod(),the > response will receive automaticly 2K data,what I want likes > HeadMethod which only receives the header ,but HeadMethod could not get the > response. > Honestly,

Re: Problem sending request using HttpClient when the server receiving request goes down and is started again.

2008-03-28 Thread Oleg Kalnichevski
On Thu, 2008-03-27 at 11:53 +, gagneet wrote: > Hi Oleg, > As I was using Singleton HttpClient object the JSESSIONID persisted for > every request. I have cleared the persistence by calling clearCookies() > method on the HttpState object corresponding to the HttpClient object. Should > I

Re: Client Cert Authentication

2008-03-28 Thread Oleg Kalnichevski
On Thu, 2008-03-27 at 16:03 -0500, Larry Owen wrote: > Hello, > Can anyone help me out with an example using client certificate > authentication? I'm currently trying to modify > EasySSLProtocolSocketFactory.java from the contribs in the 3.1 source, > but It's completely hopeless. > Larry, T

Re: html form code & name value pair example

2008-04-01 Thread Oleg Kalnichevski
On Sat, 2008-03-29 at 22:27 -0700, Corey Lundon wrote: > Is my problem that my Login is based on javascript and HttpClient doesn't > execute javascript like a browser does. So is what I am doing impossible. Corey No, it is not impossible. You just need to manually simulate the effect of a for

Re: Using Examples Questions - TrivialApp

2008-04-01 Thread Oleg Kalnichevski
On Tue, 2008-04-01 at 13:43 +0400, [EMAIL PROTECTED] wrote: > Hello! > > I'm novice & trying the TrivialApp.java example > with commons-httpclient-3.1.jar and commons-logging-1.1.1.jar > and have some problems/questions: > > 1) I MUST add commons-codec-1.3.jar into -classpath param to run > Tri

Re: Understanding Keepalive

2008-04-01 Thread Oleg Kalnichevski
On Tue, 2008-04-01 at 08:00 -0500, Aaron Shettleroe wrote: > I'm using a packet sniffer to determine if keepalive is working. It > seems that the keepalive functionality has only a small window before > the server will close the connection. I'm using Oracle Application > Server 10g which is buil

Re: Timeout on App Server - That goes away after restart

2008-04-01 Thread Oleg Kalnichevski
On Tue, 2008-04-01 at 11:01 -0700, Jonathan Hager wrote: > We are using HttpClient (3.x) on an application server to call a web > service. This code has been deployed for over a year. Yesterday, > after the application server had been running for 12 days, we started > getting connection time out

Re: Performance Documents??

2008-04-01 Thread Oleg Kalnichevski
On Tue, 2008-04-01 at 12:56 -0700, joeweder wrote: > We are considering using HTTPClient. Is there any performance documents > comparing to JDK and others? Anything to summarize why it is much better? > > Thanks. We never truly needed to prove HttpClient was better than HttpUrlConnection, beca

Re: html form code & name value pair example

2008-04-02 Thread Oleg Kalnichevski
am starting small to try to grasp using HttpClient correctly. Oleg Kalnichevski <[EMAIL PROTECTED]> wrote: On Sat, 2008-03-29 at 22:27 -0700, Corey Lundon wrote: Is my problem that my Login is based on javascript and HttpClient doesn't execute javascript like a browser does. So is what I am d

Re: Unexpectedly long request time-outs

2008-04-02 Thread Oleg Kalnichevski
Christiaan Lamprecht wrote: Hi all, Just a quick question on some "abnormally" large timeouts if anyone can help. Socket timeout defines a maximum of period inactivity between two _consecutive_ I/O operations. Hope this helps Oleg I have a couple of clients sending requests to a server

Re: Problem sending request using HttpClient when the server receiving request goes down and is started again.

2008-04-02 Thread Oleg Kalnichevski
ultiThreadedHttpConnectionManager - Freeing connection, hostConfig=HostConfiguration[host=https://uat.abc.def.ghi] [4/2/08 10:51:46:056 IST] 2ff8605c SystemErr R 2008/04/02 10:51:46:056 IST [DEBUG] IdleConnectionHandler - Adding connection at: 1207113706056 [4/2/08 10:51:46:056 IST] 2ff86

Re:

2008-04-02 Thread Oleg Kalnichevski
vijay shanker wrote: Hello friends. I am very new to this API and I got to make some decisions. - what should I use in production in my team.(HttpClient4, HttpClient3 or HttpCore). How they are different with each other. * HttpClient 3.x is very stable and rela

Re: httptunnel client 4.0 alpha 3 and preemtive authentication

2008-04-02 Thread Oleg Kalnichevski
Sebastiaan van Erk wrote: Hi, I'm trying to use preemptive authentication because I have a non-repeatable (dyanimc) request entity. Currently when posting, this goes wrong because I get a 401 Unauthorized but it has already sent some of the data, and when it tries again with the basic authent

Re: default proxy in httpclient 4.0-alpha3

2008-04-02 Thread Oleg Kalnichevski
Sebastiaan van Erk wrote: Hi, I'm trying to set a default proxy in httpclient 4.0-alpha3, and I'm doing this: HttpRouteParams.setDefaultProxy(client.getParams(), proxy); However, this is not working, i.e., it is just using a direct route. When I do this however on the post: HttpRouteParams.se

Re: Duplicate requests

2008-04-02 Thread Oleg Kalnichevski
Aaron Shettleroe wrote: It appears that HttpClient is sending the same request more than once. Unlikely, unless the RetryHandler is configured to do so. I tried to code against this. Here is some code snippets: private static HttpClient httpClient; ... final HttpConnectionManagerParams pa

Re: HttpClient Sockettimeout does not work

2008-04-02 Thread Oleg Kalnichevski
[EMAIL PROTECTED] wrote: Hello, I am using httpclient 3.1. I am trying to make a http request that should timeout when a response is not revceived within 2 minutes. See definition of the socket timeout Oleg The requirement is also to retry 3 times before throwing back an application except

Re: httptunnel client 4.0 alpha 3 and preemtive authentication

2008-04-02 Thread Oleg Kalnichevski
*does* retry the request with the authentication header, as it seems to me that it is impossible if the entity is not repeatable and some data is already sent. An exception might be better? Can you post a wire/context log of the session? Oleg Regards, Sebastiaan Oleg Kalnichevski

Re: Problem sending request using HttpClient when the server receiving request goes down and is started again.

2008-04-02 Thread Oleg Kalnichevski
you are executing a request with an absolute request URI. HttpClient will create an instance of HostConfiguration for you. Hope this helps Oleg > Thanks once again for your help. > > Regards, > Gagneet > > - Original Message - > From: "Oleg Kalnichevski&q

Re: ChunkedOutputStream and flushing

2008-04-02 Thread Oleg Kalnichevski
On Wed, 2008-04-02 at 21:55 +0200, Sebastiaan van Erk wrote: > Hi, > > I have a question on the chunked output stream: one of the nice things > about chunked encoding is that you can send your data in little parts. > However, flush() on ChunkedOutputStream does not flush the buffer: > > /

Re: ClientMultiThreaded Example

2008-04-06 Thread Oleg Kalnichevski
On Fri, 2008-04-04 at 14:35 +, John Baxter wrote: > Hi Folks, > Im hope some one can shed some light on this for me. Im currently doing a > prototype and decided i would do it with the httpclient4.0 alpha3 version. I > have or will have a multi-threaded scenario so i have a very simila

Re: HttpClient with JSF pages

2008-04-06 Thread Oleg Kalnichevski
On Wed, 2008-04-02 at 18:46 -0500, Ranthydev Rereddy wrote: > Hello. > > I am attempting to use HttpClient to access a jsf page for uploading > files. The jsf page has a submit button that invokes an action on a bean. > When I first access the jsf page it returns the file upload page with a > j

Re: Http connection management/throttling for various applications sending GET requests to the same web server using a single web service

2008-04-06 Thread Oleg Kalnichevski
On Thu, 2008-04-03 at 22:22 -0700, Sujith Joseph wrote: > Hi, >I am trying to implement a way of throttling http connections to a web > server from a web service, using httpclient, so that the web server wouldn't > be overloaded with more than 'x' concurrent connections, from my web > service.

Re: Dealing with a server that doesn't always respond with an HTTP response header

2008-04-06 Thread Oleg Kalnichevski
On Fri, 2008-04-04 at 14:14 -0400, Jeremy Mayhew wrote: > Hi, > > I am using htmlunit+httpclient to test an embedded web application. > Unfortunately there is a large set of requests for which this embedded > webserver does not respond with an HTTP header, but instead splats the body > without a

Re: Unexpectedly long request time-outs

2008-04-08 Thread Oleg Kalnichevski
On Mon, 2008-04-07 at 23:31 +0100, Christiaan Lamprecht wrote: > Thanks Oleg, > > > Socket timeout defines a maximum of period inactivity between two > > _consecutive_ I/O operations. > > I've been looking through the connection manager code trying to find > out what effect a ConnectionTimeout

Re: URGENT --- Passing Session Info to a Redirected Page

2008-04-09 Thread Oleg Kalnichevski
On Tue, 2008-04-08 at 13:23 +0800, Shanmugam Karthikeyan NCS wrote: > Hi All, > > I am new to HttpClient. I need to develop a proxy servlet which does an > internal Http post to a IIS server which in turn generates a cookie which i > need to use in order to perform Single Sign On to a Vend

RE: getting httpclient to trust all certs for ssl?

2008-04-09 Thread Oleg Kalnichevski
On Tue, 2008-04-08 at 13:53 -0700, George Ludwig wrote: > Crap, my fat fingered typing prematurely sent the > response. > > Execute this at any time before the SSL session: > > public static void trustAllCerts() throws Exception { >ProtocolSocketFactory sf=new > EasySSLProtocolSocke

Re: Using NTLM auth with expect continue

2008-04-09 Thread Oleg Kalnichevski
On Tue, 2008-04-08 at 18:53 -0400, Tony Thompson wrote: > I am using HTTPClient 3.1. I have an application that does NTLM > authentication. I am posting data with the HTTPClient using a stream > that is not buffered. If the web server requires an NTLM handshake, I > get an "unbuffered entity en

RE: Using NTLM auth with expect continue

2008-04-10 Thread Oleg Kalnichevski
pe="text/css">[\r][\n]" > DEBUG (04/09) 13:34:55 [httpclient.wire.content]: << " BODY { font: > 8pt/12pt verdana }[\r][\n]" > DEBUG (04/09) 13:34:55 [httpclient.wire.content]: << " H1 { font: > 13pt/15pt verdana }[\r][\n]" > DEBUG (04/09) 13:34:

Re: HTTP/1.1 417 Expectation Failed during HttpPost

2008-04-10 Thread Oleg Kalnichevski
On Thu, 2008-04-10 at 09:38 +1000, Steven Adams wrote: > Hi, > > > > I'm using HttpClient 4.0-alpha. I'm trying to post some data to a PHP script > but I keep getting the error "HTTP/1.1 417 Expectation Failed" back from the > server (I think). > > > > Does anyone know what this means? I'

RE: Using NTLM auth with expect continue

2008-04-10 Thread Oleg Kalnichevski
On Thu, 2008-04-10 at 09:59 -0400, Tony Thompson wrote: > I have debug enabled for org.apache.commons.httpclient so, I am not sure > why nothing comes out. Is there a specific class I should turn on debug > for that would give you the info you need? > Tony I will not be able to be of any meani

  1   2   3   4   5   6   7   8   9   10   >