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: 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 idea

Re: Trying to Authenticate to MS Exchange 2003

2008-01-11 Thread Oleg Kalnichevski
..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 -0500, Michael Prichard wrote: What does this mean? Does

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 release

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 of

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 sends the

[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

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. I

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 Windows

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 out the

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 it's

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 of

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=15912252framed=y After I GET a request to the server, the session will be established. The following sequences

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 input

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 crossed my mind.

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

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 implement them.

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.

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 no

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 happen due to various

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 -alias

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 the

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 quite

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

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 websites thru

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 the

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. Thanks very

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 is

Re: Getting the response time for multithreaded client

2008-03-25 Thread Oleg Kalnichevski
/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 wrote: On Thu, 2008-03-20 at 18:19 +0100, Uwe Kubosch

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

2008-03-25 Thread Oleg Kalnichevski
(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 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

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, There

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 form

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

2008-04-02 Thread Oleg Kalnichevski
] MultiThreadedHttpConnectionManager - Notifying no-one, there are no waiting threads What can be the possible reason for this? What can be the way(s) to avoid this? Regards, Gagneet Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Thu, 2008-03-27 at 11:53 +, gagneet wrote: Hi Oleg, As I

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

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

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

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

Re: httptunnel client 4.0 alpha 3 and preemtive authentication

2008-04-02 Thread Oleg Kalnichevski
* 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 wrote

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

2008-04-02 Thread Oleg Kalnichevski
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 [EMAIL PROTECTED] To: HttpClient User Discussion httpclient-users

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: 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

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. (I

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 and

RE: Using NTLM auth with expect continue

2008-04-11 Thread Oleg Kalnichevski
- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Thursday, April 10, 2008 5:46 PM To: HttpClient User Discussion Subject: RE: Using NTLM auth with expect continue On Thu, 2008-04-10 at 17:19 -0400, Tony Thompson wrote: Hopefully this has what you need: ... DEBUG (04/10) 17

RE: Using NTLM auth with expect continue

2008-04-11 Thread Oleg Kalnichevski
6e 75 65 0d 0a 0d 0a 50 4f 53 54 continuePOST 03e0 20 2f 6e 74 6c 6d 74 65 73 74 2f 64 69 73 70 6c /ntlmtest/displ 03f0 61 a -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 3

Re: calculate bandwidth of HttpClient

2008-04-15 Thread Oleg Kalnichevski
On Tue, 2008-04-15 at 21:41 +0300, Eugeny N Dzhurinsky wrote: On Tue, Apr 15, 2008 at 07:49:12PM +0200, Oleg Kalnichevski wrote: On Tue, 2008-04-15 at 19:43 +0300, Eugeny N Dzhurinsky wrote: Hello there! Is there any way to get the bandwidth, used by HttpClient to download

Re: HttpEntity.consumeContent() needs to much time. (HC 4.0 beta)

2008-04-17 Thread Oleg Kalnichevski
On Thu, 2008-04-17 at 11:40 +0200, Jan Bracker wrote: Hello, i'm using the DefaultHttpClient for downloading bigger files. When i want to abort a download i call response.getEntity().consumeContent() Why? The purpose of HttpEntity#consumeContent() method is to ensure the underlying

Re: request GET line

2008-05-04 Thread Oleg Kalnichevski
On Sun, 2008-05-04 at 02:55 -0400, Bashiro wrote: I sent this message hoping to get a response but all invain. I hereby send again in case it escaped others. I really need help Thanks. Hello, I will be grateful for any kind of help... The authentication site is:

[ANNOUNCEMENT] HttpComponents HttpClient 4.0-alpha4 released

2008-05-09 Thread Oleg Kalnichevski
The HttpComponents project is pleased to announce the release of HttpComponents HttpClient 4.0-alpha4. This release marks the completion of the overhaul of the connection management code in HttpClient. All known shortcomings of the old HttpClient 3.x connection management API have been addressed.

Re: generics issue in httpclient 4.0-alpha4

2008-05-10 Thread Oleg Kalnichevski
On Sat, 2008-05-10 at 11:03 +0200, Sebastiaan van Erk wrote: Hi, First of all, thanks for the new httpclient release. :-) When I was updating my project I ran into one small generics issue; the following code will not compile: new

Re: Regarding closing of idle connections for non-reusable / non-threaded httpClient instances to ensure complete connection closure

2008-05-16 Thread Oleg Kalnichevski
this yet. But if you already know this, I think, I could save some testing time . No, I am not. However, I have been lucky enough to have not touched WAS for 4 years. Oleg Thanks, Sujith On Thu, May 15, 2008 at 12:10 PM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Tue, 2008-05-13

Re: Pattern for batch file transfers

2008-05-18 Thread Oleg Kalnichevski
On Fri, 2008-05-16 at 09:17 -0700, stanlick wrote: Greetings -- I am searching for a generic solution for transferring files between peers using HttpClient and FileUpload. I see a myriad of techniques, but would really appreciate a solution that: 1) streams in/out (don't want to worry

Re: Sending serialized object and stream

2008-05-18 Thread Oleg Kalnichevski
On Fri, 2008-05-16 at 16:05 -0400, [EMAIL PROTECTED] wrote: Hi All, I've requirement to send both serialized java object and stream object. Here is the code that sends serialized object ByteArrayOutputStream requestStream = new ByteArrayOutputStream();

Re: Newbie question port 8080

2008-05-20 Thread Oleg Kalnichevski
- [\r][\n] 2008/05/20 14:01:32:193 NZST [DEBUG] header - HTTP/1.1 404 Not Found[\r][\n] On 5/20/08, Oleg Kalnichevski [EMAIL PROTECTED] wrote: richard schmidt wrote: When I try and run this code, I always get a responce from a server at port 80. What makes you think so

Re: The http core tutorial

2008-05-20 Thread Oleg Kalnichevski
On Tue, 2008-05-20 at 20:48 +0800, jeffty wrote: Hi, I'm looking for the tutorial of HttpCore in http://hc.apache.org. And only some examples are available. And is there any detailed articles about it? Thanks in advance. This is all we have at the moment

Re: Basic Authentication Issue

2008-05-20 Thread Oleg Kalnichevski
On Tue, 2008-05-20 at 11:12 -0400, Ashish Kulkarni wrote: Hi This is the error i am getting 2008-05-20 11:08:33,437 DEBUG [main] params.DefaultHttpParams (DefaultHttpParams.java:151) - Set parameter http.auth.scheme-priority = [Basic] The client has been configured to accept basic

Re: Newbie question port 8080

2008-05-20 Thread Oleg Kalnichevski
On Wed, 2008-05-21 at 09:29 +1200, richard schmidt wrote: Thanks I will try 4.0beta1 The latest official release is 4.0-alpha4. HttpClient 4.0 is not yet in the BETA phase. BTW do you have a maven POM for it? Yes. Oleg On 5/21/08, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Tue

Re: HttpClient / Core 4.0 question

2008-05-22 Thread Oleg Kalnichevski
Vibhav Sharma wrote: Hi, I have used HttpClient 3.x previously. It did not have the ability to do the following. * Client makes a chunked multipart request to server. * Server responds with a chunked response. * Client sends more data as part of the same request. * Server

Re: Redirected - but where? HttpClient 4

2008-05-22 Thread Oleg Kalnichevski
DrewC wrote: Ok, I guess I just needed to keep banging on this for another hour. I am now using a non-default context with the execute and then reconstructing the final require URL with: HttpUriRequest finalRequest = (HttpUriRequest)

Re: How to download .jar file? (I think that I read most of threads and googled alot..)

2008-05-23 Thread Oleg Kalnichevski
On Thu, 2008-05-22 at 21:46 -0700, JBRyu wrote: Hi, I have a problem with downloading a .jar file from a HTTP server. I'm now using httpclient-4.0-alpha4 and httpcore-4.0-beta1 libraries. I can download any .jar file using a http input stream, but the download .jar file is corrupted even if

Re: About releaseconnection method of version 3.1

2008-05-23 Thread Oleg Kalnichevski
On Fri, 2008-05-23 at 14:30 +0530, Laxmilal Menaria wrote: Hello, We are using httpclient 3.1 library in our application and sending multiple request using Multiple threads. Releasing connection when the thread completes using httpmethod.releaseconnection() method. But we encountered that

Re: difference between request headers and request params

2008-05-24 Thread Oleg Kalnichevski
On Fri, 2008-05-23 at 16:03 -0500, Dimitrios Christodoulakis wrote: Hello, I am a new user of HTTPClient and trying to learn how to use it. I have read the relevant primer and user guide but I am not sure what is the difference between headers and parameters. HTTP headers are elements of the

[ANNOUNCEMENT] HttpClient 4.0 is nearing API freeze / API review request

2008-05-24 Thread Oleg Kalnichevski
Folks The redesign of HttpClient is now complete. All known problems with the old (3.x) API and architecture limitations have been resolved. All features planned for the 4.0 release are now in place. Due to the release schedule of one of our upstream projects we will have to freeze the 4.0 API

Re: Changing order of headers in a multipart post

2008-06-03 Thread Oleg Kalnichevski
On Mon, 2008-06-02 at 16:21 -0700, Darrell Esau wrote: Hi all, I'm posting multipart form data to a web service which expects the headers in a certain order. Particularly, each part contains a Content-Type and Content-Disposition header. If I send the data with the Content-Disposition

Re: Out of memory using ThrottlingHttpClientHandler

2008-06-03 Thread Oleg Kalnichevski
On Tue, 2008-06-03 at 20:48 +0800, maomaode wrote: Hi, I'm hitting a Out Of Memory error when using ThrottlingHttpClientHandler http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.html I gave a

RE: Log4j with Httpclient 4.x

2008-06-05 Thread Oleg Kalnichevski
On Thu, 2008-06-05 at 08:51 +1000, Steven Adams wrote: But org.apache.http.wire is right? Yes, it is. Oleg -Original Message- From: Sam Berlin [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 June 2008 12:03 AM To: HttpClient User Discussion Subject: Re: Log4j with Httpclient 4.x

Re: Out of memory using ThrottlingHttpClientHandler

2008-06-06 Thread Oleg Kalnichevski
On Fri, 2008-06-06 at 13:35 +0800, maomaode wrote: Hi, I've filed the issue https://issues.apache.org/jira/browse/HTTPCORE-162 Testcase patch attached, also paste the stacktrace Some other questions, In the NIO client sample, ioReactor.connect( new

Re: Add headers to Redirect request

2008-06-06 Thread Oleg Kalnichevski
On Thu, 2008-06-05 at 23:14 -0700, Thuannd wrote: Hi! When after a redirect response a retry is done by the DefaultClientRequestDirector, i think, redirect request cann't add all headers from original request. Some headers, example: Host header , there will be incorrect value if request

Re: HttpClient not sending cookie?

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 11:25 -0500, Eduardo J. Ortega U. wrote: Hi, all: I am trying to use HttpClient to authenticate to a website, and do a couple of GET and POST requests. I can submit the authentication form, get the cookie, and after getting the cookie, I can make a GET request and I

Re: How to encode GET parameter to iso-8859-1?

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 18:51 +0200, Bas Schulte wrote: Hi, I need to encode my parameters in a GET request to a given host in iso-8859-1. How would I go about that with httpclient (3.1)? There's EncodingUtil.getBytes that gives me a byte[]: String messageData = blah; byte[] bytes =

Re: HTTPClient Logon form

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 13:47 -0700, Benouille wrote: Hi all, I'm new to HTTPClient. I'm trying to logon to a form developped under WEBSPHERE Studio. This form needs a username/password and need to accept cookies. So i try the sample FormLoginDemo in the HTTPClient samples. Unfortunately,

Re: http pipelining

2008-06-10 Thread Oleg Kalnichevski
On Tue, 2008-06-10 at 14:35 +0200, Martin Zdila wrote: hello is there support for http pipelining in the httpclient/httpcore 4? if not, are thare any plans to support it? Martin, The trouble is that pipelining and 'expect:continue' handshaking are (pretty much) mutually exclusive.

Re: Using httpclient object: local vs object scope

2008-06-11 Thread Oleg Kalnichevski
On Wed, 2008-06-11 at 11:23 +0300, Vasilij Savin wrote: Greetings, I have been playing with HttpClient 4 lately. It is pretty nice piece of software, but recently I run into problem I was not able to resolve. Currently I am using HttpClient to provide communication between sistem I am

Re: [POLL] Logging toolkit for HttpClient 4.x

2008-06-11 Thread Oleg Kalnichevski
-log4j-bridge/ PS: I'll tally the votes on Friday On Mon, 2008-06-02 at 22:36 +0200, Oleg Kalnichevski wrote: Folks, We are currently considering whether we should continue using commons-logging or migrate to SLF4J or java.util.logging. Please let us what your preference is. We are going

Re: Higher Throughputs

2008-06-12 Thread Oleg Kalnichevski
Quintin Beukes wrote: Hey, I made some basic servlets to test throughputs for HttpClient, HttpCore and sun's sun.net.www.protocol.http.HttpURLConnection (or something along those lines, I don't have an API at hand now). I basically just put up an apache session listening on port 8580, and then

Re: Higher Throughputs

2008-06-13 Thread Oleg Kalnichevski
or that of your Internet service provider's routing infrastructure. I guess 'localhost' is your best friend. Oleg Q On Thu, Jun 12, 2008 at 11:02 PM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: Quintin Beukes wrote: Hey, I made some basic servlets to test throughputs for HttpClient, HttpCore

[POLL][RESULT] Logging toolkit for HttpClient 4.x

2008-06-13 Thread Oleg Kalnichevski
 Commons Logging: 8 slf4j: 10 java.util.logging:2 20 votes (out of ~330 subscribers) is hardly representative but there is not much I can do about it It looks like there is enough support to keep Commons Logging. Given

Re: Higher Throughputs

2008-06-13 Thread Oleg Kalnichevski
Thanks Q On Fri, Jun 13, 2008 at 2:53 PM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Fri, 2008-06-13 at 11:56 +0200, Quintin Beukes wrote: Not getting expected rate when running inside tomcat. Here are my benchmark results for running as an application (direct connections

Re: Wiki Addition

2008-06-15 Thread Oleg Kalnichevski
Quintin Beukes wrote: I'm only guessing, but it might help if I supply the URL to the guide: http://wiki.apache.org/HttpComponents/GeneralHttpCoreIntroduction Quintin Great stuff! Many thanks for this contribution. I'll put a link to it on the project's web site after the 4.0-beta2

Re: Wiki Addition

2008-06-16 Thread Oleg Kalnichevski
On Sun, 2008-06-15 at 22:03 +0200, Quintin Beukes wrote: Hey, Like I promised, I started creating documentation for HttpComponents. I am creating them as I learn it while implementing it in my own software. Since my software is closed source, I have to make parallel classes which simply use

Re: Message body in GET method?

2008-06-19 Thread Oleg Kalnichevski
On Thu, 2008-06-19 at 12:13 -0700, David Gallardo wrote: I've read section 9.1 and don't see how this would be in violation of the spec. I intend to use the body merely to specify the query, the server doesn't preserve it, so it's an entirely safe, idempotent retrieval operation--like any

Re: DefaultHttpClientConnection.isOpen();

2008-06-19 Thread Oleg Kalnichevski
is #shutdown. I would certainly help if you managed to reproduce the problem with a test case. Cheers Oleg It is definitely a concurrency issue. I am still narrowing them all down. thanks, Q On Thu, Jun 19, 2008 at 12:02 AM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-06-18

Re: isStale()

2008-06-20 Thread Oleg Kalnichevski
this into being more reliable (in the sense of reducing failures to a minimum). Q On 6/21/08, Oleg Kalnichevski [EMAIL PROTECTED] wrote: Quintin Beukes wrote: Hey, Isn't isStale() supposed to be able to tell me whether the server is accepting responses? No, it is intended to test if the connection

[ANNOUNCEMENT] HttpComponents HttpCore 4.0-beta2 released

2008-06-22 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce the release of HttpComponents HttpCore 4.0-beta2. This release adds a number of improvements to the NIO components, most notable being improved asynchronous client side and server side protocol handlers. There has been a number of

Re: Looking for commons-logging?

2008-06-27 Thread Oleg Kalnichevski
On Fri, 2008-06-27 at 00:19 -0400, RM1X wrote: Hi everyone, Got all of the HttpClient+core downloads, linked them up in the Eclipse project properties, and unfortunately when trying to run the HttpClient I get: Exception in thread main java.lang.NoClassDefFoundError:

RE: Too Many Connections

2008-06-27 Thread Oleg Kalnichevski
/logging.html Oleg We'll try the multithreaded connection manager next. (I was pretty sure the calling app was single threaded but I'm not 100% sure). Thanks! Ken -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 11:20 AM

Re: Is it possible to get a HttpConnection from HttpClient?

2008-06-27 Thread Oleg Kalnichevski
On Fri, 2008-06-27 at 10:43 -0700, Yan aka. Yansheng wrote: Hi There, This is my first post here so I hope this is the right audience. My story: I want to replace a chunk of my code for doing I/O streaming to a webservice. I use java.net.HttpURLConnection to get the InputStream and

Re: The Cookie jar's lid seems stuck

2008-07-02 Thread Oleg Kalnichevski
On Wed, 2008-07-02 at 11:59 +0200, Quintin Beukes wrote: Hey, Due to our search engine for one of our sites being hosted on a separate domain, we can't do AJAX requests to the original domain. This isn't much of a problem, as I figured I'd just use HttpClient to make a servlet which is a

Re: ConnectMethod usage

2008-07-05 Thread Oleg Kalnichevski
On Thu, 2008-07-03 at 15:12 -0700, Mike Cumings wrote: Hello all, I've got a question as to the usage of the ConnectMethod. From the API, it appears that the only non-deprecated way to create a HTTP CONNECT connection is to construct a ConnectMethod instance, passing in a HostConfiguration

Re: ConnectMethod usage

2008-07-05 Thread Oleg Kalnichevski
On Sat, 2008-07-05 at 12:56 -0700, Mike Cumings wrote: Hi Oleg, I'm well ware of what HTTP CONNECT is used for and how it works. When I added the explicit protocol selection in the snippet of code previously sent out, I was just checking to see if the scheme would e inherited from the host

Re: ConnectMethod usage

2008-07-06 Thread Oleg Kalnichevski
consider building a custom HTTP client using components of HttpClient 4.0. The 4.0 API is significantly more modular and flexible than its predecessor. Oleg Mike On Sat, Jul 5, 2008 at 4:14 PM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Sat, 2008-07-05 at 12:56 -0700, Mike Cumings wrote

Re: Content-Encoding management

2008-07-09 Thread Oleg Kalnichevski
On Wed, 2008-07-09 at 11:51 -0700, Alexis Midon wrote: Hi all, I'd like to know how Httpclient 3.* deals with compressed content in a way or another. No, it does not for instance may I expect compressed response bodies to be uncompressed transparently and exposed in their Content-Type?

Re: About retry handler...

2008-07-16 Thread Oleg Kalnichevski
On Wed, 2008-07-16 at 10:32 +0530, Jawahar Nayak wrote: Hi, I am using HttpClient3.0. To set retry handler I am using clientParams.setParameter(HttpMethodParams.RETRY_HANDLER, 3); This is wrong. See http://hc.apache.org/httpclient-3.x/exception-handling.html#Custom_exception_handler

Re: Ignore response in POST Method

2008-07-16 Thread Oleg Kalnichevski
the underlying connection (2) Extend the default connection manager, override its releaseConnection method and extend it to close all connections returned to the pool. (3) Remove connection from the pool that have been idle for too long. 3 option is recommended Oleg greetings, Michael Oleg

Re: HttpClient invalidates session

2008-07-17 Thread Oleg Kalnichevski
On Wed, 2008-07-16 at 16:18 -0700, Leena Borle wrote: Hi, I have a struts-2 application running on Tomcat-5 with Single Sign on enabled. What I am trying to do is , use HttpClient(struts2 app) to access data other WAR(say WAR2) which also has Form Based login system. To avoid sending

Re: Long wait times in MultiThreadedHttpConnectionManager.doGetConnection(...)

2008-07-17 Thread Oleg Kalnichevski
On Wed, 2008-07-16 at 16:19 -0700, Algirdas Veitas wrote: Hi, Our application is using HttpClient 3.0.1 and is experiencing long wait times (started happening recently it seems) in the method MultiThreadedHttpConnectionManager.doGetConnection(...). To give a summary of the application, we

Re: PUT Expect:100-continue

2008-07-17 Thread Oleg Kalnichevski
On Wed, 2008-07-16 at 17:34 -0700, Uday Subbarayan wrote: Hi All, I am having trouble in using HTTPClient 3.1 for PUT method w/ Expect:100-Continue header. My requirement is that, [1] client sends a PUT request to the server with header only using this Expect header and waits for

  1   2   3   4   5   6   7   8   9   10   >