Re: PUT Expect:100-continue

2008-07-18 Thread Oleg Kalnichevski
Uday Subbarayan wrote: Hi Oleg, I disagree with you. This 100 status from HTTP Servers are valid response, to indicate to the client to continue sending the body. You are very welcome to disagree. RFC 2616, section 10.1 10.1 Informational 1xx This class of status code indicates a

Re: How to make sure I use the same connection?

2008-07-21 Thread Oleg Kalnichevski
On Mon, 2008-07-21 at 09:19 +0200, Phillip Gussow wrote: Hi peeps, I'm struggling with how to solve a nice problem. Let me sketch the situation: I have to call web services of a 3rd party. They have 'funny' web services, because they first want a login SOAP request and then using the SAME

Re: Pool running out of connections

2008-07-29 Thread Oleg Kalnichevski
, is it optimal to call closeIdleConnections after every releaseConnection? The best way is to call #closeIdleConnections _before_ executing a new request after a period of inactivity. Oleg Thanks in advance, Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Enviado

Re: DIGEST and BASIC authentication API

2008-07-29 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi, I recently moved RESTClient ( http://code.google.com/p/rest-client/ ) from Commons HTTP to HTTP client. Previously I was using BASIC and DIGEST authentication using the Commons API. Now the example provided:

Re: Specifying HTTP version in HTTP Client (without using HttpProtocolParams's static methods)

2008-07-29 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi. How do I specify the HTTP version to use in HTTP Client? params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, version); The example in the site uses static methods in: org.apache.http.params.HttpProtocolParams I do not want to control this parameter

Re: Problem disabling BASIC authentication

2008-07-29 Thread Oleg Kalnichevski
Sabarivasan Viswanathan wrote: Hello, I am having trouble disabling every scheme except DIGEST and sending credentials preemptively. What I see when I use Wireshark is that the first HTTP request sends credentials in BASIC mode. The server sends a 401 challenge after which the client sends the

Re: Pool running out of connections

2008-07-29 Thread Oleg Kalnichevski
Thanks, Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Enviado el: martes, 29 de julio de 2008 13:12 Para: HttpClient User Discussion Asunto: Re: Pool running out of connections Joan Balagueró wrote: Hello, We're using IdleConnectionTimeoutThread

Re: Connecting to a proxy hosted on SSL socket

2008-08-01 Thread Oleg Kalnichevski
Seriously wrote: I need to connect to a proxy that requires authentication over SSL. The connections that I'm making across the proxy are http, so I'm not actually tunneling _through_ a proxy, but using https to authenticate _at_ the proxy. The httpclient methods that I've found for connecting

Re: NTLM authentication in 4.x

2008-08-01 Thread Oleg Kalnichevski
Sebastiaan van Erk wrote: Hi, As far as I can see, the NTLM support is available in 4.0-alpha5-SNAPSHOT. Is there any maven repository I can use to get the snapshot builds, or do I have to get the SVN version and build it myself? Sebastiaan You can get the latest snapshots from the

Re: NTLM authentication in 4.x

2008-08-01 Thread Oleg Kalnichevski
Sebastiaan van Erk wrote: Hi, Ok, I checked out trunk and did a mvn install, which fixed the problem for now. Any idea on an ETA for alpha5? And still curious if there are snapshot builds anywhere. The next release will be BETA1 and is likely to happen around mid August. Oleg Regards,

Re: Preemptive auth and mixed auth types and alpha5

2008-08-01 Thread Oleg Kalnichevski
Sebastiaan van Erk wrote: Hi, I have a question a preemptive authentication and auth types in alhpa5. First of all, I'm doing some non-repeatable requests, but I always do 1 repeatable short request first. I can use this first request to authenticate to the proxy (figuring out the out type

Re: Preemptive auth and mixed auth types and alpha5

2008-08-01 Thread Oleg Kalnichevski
Sebastiaan van Erk wrote: Hi, Thanks for your helpful answers, as usual. :-) Oleg Kalnichevski wrote: HttpClient 4.0 can be customized to support preemptive authentication using BASIC or DIGEST schemes. NTLM cannot be used preemptively in principle. Hi Sebastiaan Ok, I was afraid

Re: Setting Connection Timeout

2008-08-03 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi, I have been using Commons HTTP Client 3.x for sometime, where I set the connection timeout value thus: client.getHttpConnectionManager().getParams().setConnectionTimeout(123456); How do I perform this in 4.x? Set 'http.connection.timeout' parameter to a

Re: Possible to converse with WebDAV using HttpClient library

2008-08-05 Thread Oleg Kalnichevski
Venkatesh wrote: I am trying to write a simple Java REST program that will try to converse with WebDAV and do simple file operations (create, read, update , delete etc..). I am new to HttpClient and i can see that it can do most of the well known HTTP operations such as GET, PUT, POST, DELETE

Re: Proxy Authentication

2008-08-05 Thread Oleg Kalnichevski
Justin Tay wrote: Hi, I would like to do the following regarding proxy authentication. 1) Pre-emptive authentication for proxies that have issued a challenge before. (The idea being that a proxy that has requested for authentication before will probably still ask for authentication) 2) Allow

Re: Possible to converse with WebDAV using HttpClient library

2008-08-10 Thread Oleg Kalnichevski
4.0 than 3.1. In fact you may not even need to create any custom classes as one can easily create instances of BasicHttpRequest / BasicHttpEntityEnclosingRequest with an arbitrary method name. Oleg - Original Message From: Oleg Kalnichevski [EMAIL PROTECTED] To: HttpClient User

Re: SOCKS authentication - SocketException: SOCKS : authentication failed

2008-08-11 Thread Oleg Kalnichevski
On Sun, 2008-08-10 at 21:21 +0200, Svyatoslav Hresyk wrote: Hello, I have run into problems, trying to use a SOCKS proxy with authentication. I keep getting java.net.SocketException: SOCKS : authentication failed regardless of wether I set the username and password or not. I have tested

Re: Example of reuse of connections with NIO ?

2008-08-11 Thread Oleg Kalnichevski
On Mon, 2008-08-11 at 10:37 +0200, Morten Mortensen wrote: Is HttpClient 4 (HttpComponents) able to reuse HTTP connections when used with NIO? Morten, NIO connections are persistent / re-usable per default. However, the API is quite low level and may be cumbersome to use without a connection

Re: Need help with ProxyClient tunneling through authenticatingproxy

2008-08-11 Thread Oleg Kalnichevski
post a complete wire / context log of the HTTP session and the exception stack trace. Oleg Here is how I set host. proxyClient.getHostConfiguration().setHost(host, port, https); Jiggy. -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008

Re: HttpGet.getRequestLine() -- Why not part of org.apache.http.HttpMessage

2008-08-15 Thread Oleg Kalnichevski
On Thu, 2008-08-14 at 23:57 +0530, Subhash Chandran wrote: This is something which is common to all the HTTP methods, then why this partiality? Basically, I am trying to re-create the HTTP request generated by HttpClient so that I can show in RESTClient ( http://rest-client.googlecode.com/

RE: JDK vs HttpClient

2008-08-15 Thread Oleg Kalnichevski
On Fri, 2008-08-15 at 10:05 -0400, Jignesh Malkan wrote: Hi Raymond, Thanks for your input. Can you please explain it's about performing scalable http requests on web servers? Can you also point me to the documentation or a sample application that help me compare the performance?

Re: using SSL in a development environment

2008-08-15 Thread Oleg Kalnichevski
On Fri, 2008-08-15 at 12:21 -0400, Bill Higgins wrote: Hi I'm working in a development environment where our servers use self-signed certificates. I want to use HttpClient 4 to connect to these servers and basically ignore any security errors that come back. I was hoping I could use

Re: HttpGet.getRequestLine() -- Why not part of org.apache.http.HttpMessage

2008-08-17 Thread Oleg Kalnichevski
On Sun, 2008-08-17 at 01:36 +0530, Subhash Chandran wrote: My question is: why is the method getRequestLine() part of HttpGet when it is common to all HTTP methods? It would be better to define it in org.apache.http.HttpMessage, so that from all Http* methods I will be able to access this

Re: how to set wait time to request

2008-08-20 Thread Oleg Kalnichevski
On Sun, 2008-08-17 at 17:11 -0500, Shailesh Joshi wrote: Hi: I have one question, I sent a request, but it took more than 5 seconds to respond. Meantime, HTTPClient re-sent request which created some problem. HttpClient does not automatically retry requests blocked in an I/O operation.

Re: Preemptive auth and mixed auth types and alpha5

2008-08-20 Thread Oleg Kalnichevski
with Microsoft ISA Server 2006 (which seems pretty broken). I got basic to work with a ResponseInterceptor to pick of the auth from a successful small request preceding a large request, and then using preemptive from then on the large POSTS. However, I'm having trouble with DIGEST. Oleg

Re: Preemptive auth and mixed auth types and alpha5

2008-08-20 Thread Oleg Kalnichevski
a successful small request preceding a large request, and then using preemptive from then on the large POSTS. However, I'm having trouble with DIGEST. Oleg Kalnichevski wrote: HttpClient 4.0 can be customized to support preemptive authentication using BASIC or DIGEST schemes. NTLM

Re: Integrating HttpCore into the JEE/OSGi server environment

2008-08-20 Thread Oleg Kalnichevski
On Wed, 2008-08-20 at 11:31 -0400, Bill Higgins wrote: Code that requires the Equinox Servlet Bridge to work seems a bit out of scope for me, but I believe we could consider taking it as one of those 'contrib' components provided in source only as reference material. A lot of code start

Re: Using HttpClient with a proxy from an untrusted applet

2008-08-22 Thread Oleg Kalnichevski
Randall Scarberry wrote: Hello, I've been going in circles all day trying to use HttpClient in an untrusted applet to download data from the server through a proxy. Finally, I found a way to obtain the proxy information in the applet, but the information cannot be put to use without

Re: Final releases for HttpClient/HttpCore

2008-08-22 Thread Oleg Kalnichevski
said all that there is no substitution to thorough testing. Any code is only as stable as it is stable for _your_ particular use cases Oleg On Thu, Aug 21, 2008 at 3:00 AM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: Ron Sigal wrote: Hi, Do you have any update on projected release dates

Re: Unconnected sockets not implemented

2008-08-23 Thread Oleg Kalnichevski
On Fri, 2008-08-22 at 06:15 -0700, talldean wrote: Hopefully this is a less useless question than my last one. I have two projects using GetMethod. Both are connecting to the same https: website. One, however, is returning the following: java.net.SocketException: Unconnected sockets not

Re: Units for connection timeouts?

2008-08-23 Thread Oleg Kalnichevski
On Fri, 2008-08-22 at 10:33 -0400, Bill Higgins wrote: The Javadoc for CoreConnectionPNames#CONNECTION_TIMEOUT does not state whether it expects seconds or milliseconds. I *think* it's milliseconds after having looked at some example code and the Javadoc for CoreConnectionPNames#SO_TIMEOUT.

Re: Using HttpClient with a proxy from an untrusted applet

2008-08-23 Thread Oleg Kalnichevski
On Fri, 2008-08-22 at 11:22 -0700, Randall Scarberry wrote: --- On Thu, 8/21/08, Oleg Kalnichevski [EMAIL PROTECTED] wrote: Randy, Please note the exception is thrown when opening a socket to 127.0.0.1:8081 and NOT when executing HTTP GET. You need to configure SocketPermissions

Re: Aggregate javadoc on the site and Url Validator

2008-08-23 Thread Oleg Kalnichevski
On Sat, 2008-08-23 at 00:06 +0200, Olivier Lamy wrote: Hi, Is there any plan to published an aggregated javadoc [1] with the next release ? (currently it's hard to naviguate in all modules or I haven't found it :-) in the site ). That would be quite handy, but it is too late for this

Re: Units for connection timeouts?

2008-08-25 Thread Oleg Kalnichevski
On Sat, 2008-08-23 at 10:37 -0400, Bill Higgins wrote: Add to JavaDoc? :-) Updated. Oleg On Sat, Aug 23, 2008 at 5:12 AM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Fri, 2008-08-22 at 10:33 -0400, Bill Higgins wrote: The Javadoc for CoreConnectionPNames#CONNECTION_TIMEOUT does

Re: Keep-alive, stale connections and socket reuse

2008-09-02 Thread Oleg Kalnichevski
On Mon, 2008-09-01 at 17:27 +0300, Dobri Kitipov wrote: Hi Oleg, I have one additional more abstract question. What I have observed during my tests was that when I run my test scenarion with 5 WS consecutive invocations and sniff the traffic I can see that the sockets were reused. The problem

Re: Keep-alive, stale connections and socket reuse

2008-09-02 Thread Oleg Kalnichevski
On Mon, 2008-09-01 at 16:33 +0300, Dobri Kitipov wrote: Hi Oleg, thank you for the detailed answer of my question. It seems we need to recommend the Axis2 guys to use the better version. Do you know when there will be an official release of HttpClient 4.0-beta1? Thank you, Dobri

Re: BindException problem in multithreaded http client

2008-09-02 Thread Oleg Kalnichevski
On Tue, 2008-09-02 at 16:12 -0400, Tomek Maciejewski wrote: Hi Oleg, I am using Windows XP 32bit. I turned on context logging but I didn't see anything interesting. Are you seeing any DEBUG logs? Anyways, pass the following parameters to the JRE upon the start up:

Re: BindException problem in multithreaded http client

2008-09-03 Thread Oleg Kalnichevski
On Tue, 2008-09-02 at 17:57 -0400, Tomek Maciejewski wrote: Thanks Oleg, now it works. Earlier I used System.setProperty to enable logging but I get only WARN level logging, I don't know if the properties are case-sensitive because I set the same properties. Only difference was that I wrote

Re: My HttpClient gives me a memory leak

2008-09-07 Thread Oleg Kalnichevski
On Thu, 2008-09-04 at 00:40 -0700, Suladna wrote: Hi I have used the following tutorial to bring html-code from websites to my java program: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientExecuteDirect.java

Re: HttpClient SSL AUTHENTICATION PROBLEM

2008-09-07 Thread Oleg Kalnichevski
On Fri, 2008-09-05 at 10:02 +0200, Marco Geirola wrote: Hi, I'm tring to connect to a server over HTTPS protocol but I cannot authenticate the client. I can reach the server through a proxy without authentication, but the result is that the remote server doesn't accept my connection.

Re: Unable to perform client authentication: client certificates not accessed from system certificate store by commons-httpclient

2008-09-15 Thread Oleg Kalnichevski
On Thu, 2008-09-11 at 16:20 +0100, [EMAIL PROTECTED] wrote: Setup: commons-httpclient-3.1 java 1.6.0_04 java WebStart 6 client OS: windows XP professional browser/certificate store: IE/Windows XP I am trying to use commons-httpclient-3.1 from a WebStart-deployed application to

Re: Potential account lockouts when using authentication using concurrent http requests

2008-09-16 Thread Oleg Kalnichevski
On Mon, 2008-09-15 at 12:53 -0700, Henrich Kraemer wrote: Lets consider an application which uses credentials similar to a web browser: 1. Credentials previously accepted by a server are automatically reused for the same authentication scope. 2. If a user gets prompted for credentials they

Re: blank location in redirected response (properly formatted)

2008-09-16 Thread Oleg Kalnichevski
On Tue, 2008-09-16 at 12:45 -0700, Subashini S wrote: Hi, I’ve come across a scenario where the location: http://www.nwsource.com/travel/scr/tf_destination.cfm? When requested in IE browser comes back with the following response code: GET

Re: Potential account lockouts when using authentication using concurrent http requests

2008-09-16 Thread Oleg Kalnichevski
On Tue, 2008-09-16 at 14:24 -0700, Henrich Kraemer wrote: Hi Oleg, I assume with credentials store you talks about the abstraction provided by the CredentialsProvider interface which allows to set or get a credential as well as to clear them. Correct. I believe you are saying in

Re: how to use PostMethod to stream request?

2008-09-17 Thread Oleg Kalnichevski
On Wed, 2008-09-17 at 08:27 -0700, Yan aka. Yansheng wrote: I had a similar problem. From what I gathered, HttpClient does not support stream IO directly. It's not meant for streaming IO. This is most certainly is _NOT_ the case. HttpClient is fully capable of streaming data in and out since

Re: how to use PostMethod to stream request?

2008-09-17 Thread Oleg Kalnichevski
On Wed, 2008-09-17 at 00:20 -0400, Zhaohua Meng wrote: I have code snippet like the following. After establishing a connection, I need to steam content from database as post body. How do I get a OutputStream from either HttpClient or PostMethod? With java.net.URL I can use

Re: how to use PostMethod to stream request?

2008-09-17 Thread Oleg Kalnichevski
(ProxyAuthenticationTest.java:26) On Wed, Sep 17, 2008 at 1:56 PM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-09-17 at 00:20 -0400, Zhaohua Meng wrote: I have code snippet like the following. After establishing a connection, I need to steam content from database as post body. How do I get

Re: how to use PostMethod to stream request?

2008-09-18 Thread Oleg Kalnichevski
and writing directly to the output stream of the HTTP connection. Please do not make statements about things you are not sure about. Oleg On Wed, Sep 17, 2008 at 10:52 AM, Oleg Kalnichevski [EMAIL PROTECTED]wrote: On Wed, 2008-09-17 at 08:27 -0700, Yan aka. Yansheng wrote: I had a similar

Re: Max file size which can be transmitted using HttPClient

2008-09-21 Thread Oleg Kalnichevski
On Sun, 2008-09-21 at 09:37 -0700, ANEESHCH wrote: Hi, When I tried using UnbufferedPost, I got the following error: ... Then tried with a custom entity class, and set the flag isRepeatable to true, I strated getting the following errror... Marking an

Re: Max file size which can be transmitted using HttPClient

2008-09-21 Thread Oleg Kalnichevski
On Sun, 2008-09-21 at 14:11 -0700, ANEESHCH wrote: Hi, I tried the following options so far. 1) Based on the unbuffered post, used httppost.setRequestEntity(new InputStreamRequestEntity( new FileInputStream(file), file.length())); It gave me the error,

Re: how to use PostMethod to stream request?

2008-09-23 Thread Oleg Kalnichevski
connections, or use connection management components from HttpClient 4.0 Hope this helps Oleg On Thu, Sep 18, 2008 at 10:56 AM, Oleg Kalnichevski [EMAIL PROTECTED]wrote: On Thu, 2008-09-18 at 08:16 -0700, Yan aka. Yansheng wrote: The example you provided use the File

RE: ResponseProcessCookies - CookieSpec not available in HTTPcontext

2008-09-25 Thread Oleg Kalnichevski
of response. HttpClient handles transfer encoding completely transparently. There is nothing that needs to be on the consumer side. Just read data from the content stream of the response entity. Oleg Hermod -Original Message- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED

[Fwd: Application Period Opens for Travel Assistance to ApacheCon US 2008]

2008-09-25 Thread Oleg Kalnichevski
- The Travel Assistance Committee is taking in applications for those wanting to attend ApacheCon US 2008 between the 3rd and 7th November 2008 in New Orleans. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon US 2008 who need some

Re: visualizing upload/download status in a statusbar

2008-09-26 Thread Oleg Kalnichevski
On Fri, 2008-09-26 at 11:22 +0200, Marcel Schiffel wrote: Hi, we're successfully using the HttpClient library for several months now, but now we need a feature that seems quite hard to implement: Sometimes we need to transmit large files (up to serveral Mb) and therefore have to give some

RE: ResponseProcessCookies - CookieSpec not available inHTTPcontext

2008-09-26 Thread Oleg Kalnichevski
Hi On your last note: The content length is -1!? Yes, because the content length is not known (most likely because the entity is chunk coded) Here is the sample code - Just run it: OK. I can reproduce the problem and confirm it is a bug. I'll fix it when I am back from vacation in 10

Re: ntlm authentication

2008-10-07 Thread Oleg Kalnichevski
On Sat, 2008-10-04 at 07:26 -0700, Leo Wraith wrote: Hi sebb, Sorry, i should have mentioned it. I'm using httpclient-4.0-beta1 and yes, 0.0.0.0 is just for show. Leo Judging by the code snippet you posted in your first message, you are still using HttpClient 3.1. So, you need to

Re: UriPatternMatcher

2008-10-10 Thread Oleg Kalnichevski
On Thu, 2008-10-09 at 21:27 +0900, 西村俊夫 wrote: Hi, all When many web browsers make a HTTP request, they make Host header. For example, to access http://hc.apache.org/httpcomponents-client/primer.html they make following lines; GET /httpcomponents-client/primer.html HTTP/1.1 HOST:

Re: HttpClient and Threads

2008-10-10 Thread Oleg Kalnichevski
On Thu, 2008-10-09 at 15:05 -0400, AP Adam Patt (5094) wrote: I am trying to use HttpClient with threads and while it works, it is only sending one request at a time How do you know? Oleg - To unsubscribe, e-mail: [EMAIL

Re: Detecting connection interruptions for uploads

2008-10-10 Thread Oleg Kalnichevski
:18 AM, Oleg Kalnichevski wrote: On Tue, 2008-10-07 at 13:35 -0700, David Zhao wrote: Hi, I'm using http-client 3.1 in a java desktop client. I've noticed an issue with doing file uploads while getting connection interrupted, for example, a wifi connection that is no longer available

RE: HttpClient and Threads

2008-10-10 Thread Oleg Kalnichevski
On Fri, 2008-10-10 at 10:08 -0400, AP Adam Patt (5094) wrote: On Thu, 2008-10-09 at 15:05 -0400, AP Adam Patt (5094) wrote: I am trying to use HttpClient with threads and while it works, it is only sending one request at a time How do you know? Because the app marks the files being

RE: HttpClient and Threads

2008-10-13 Thread Oleg Kalnichevski
On Fri, 2008-10-10 at 14:22 -0400, AP Adam Patt (5094) wrote: Essentially you _assume_ HttpClient is the culprit, rather synchronization logic in your code, don't you? To see what exactly what is happening inside HttpClient components, run it with both wire and context logging on.

Re: Multiple calls to HttpClient

2008-10-14 Thread Oleg Kalnichevski
On Tue, 2008-10-14 at 09:58 +0200, Christine wrote: On Mon, 2008-10-13 at 23:41 +0200, Oleg Kalnichevski wrote: On Mon, 2008-10-13 at 10:45 -0700, Mohit Anchlia wrote: What happens when an instance of HttpClient instance is created for each request? Does it internally get associated

Re: HttpClient and Web App Credentials

2008-10-14 Thread Oleg Kalnichevski
On Tue, 2008-10-14 at 10:50 -0700, Brian Tanner wrote: I'm torn! I'm using HttpClient in a Web application which uses the authentication information from the Web app login to set credentials in the HttpClient. I see that getState() is synchronized, but if I’m only using one instance of the

Re: Multiple calls to HttpClient

2008-10-14 Thread Oleg Kalnichevski
On Tue, 2008-10-14 at 23:51 +0200, Christine wrote: On Tue, 2008-10-14 at 23:44 +0200, Oleg Kalnichevski wrote: What is the tradeoff between using the same httpClient instance again and again, or creating a new one on each request? Can you create a memory leak by using one instance

Re: Multiple calls to HttpClient

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 16:44 +0200, Christine wrote: On Wed, 2008-10-15 at 00:07 +0200, Oleg Kalnichevski wrote: It is a little more complex than that. You do not, as long as that instance is used for the entire lifespan of the application. One really ought to shut down the connection

Re: Preemptive authentication throws IllegalStateException using ISA proxy server

2008-10-15 Thread Oleg Kalnichevski
On Tue, 2008-10-14 at 13:07 -0700, Henrich Kraemer wrote: Oleg, The problem also occurs with HttpClient 3.1. See below for updated log. Let me know if you would want me to gather more information. Thanks, Henrich Henrich Disable preemptive authentication. It is pointless, as you

Re: Multiple calls to HttpClient

2008-10-15 Thread Oleg Kalnichevski
at 10:34 AM, Christine [EMAIL PROTECTED] wrote: On Wed, 2008-10-15 at 19:08 +0200, Oleg Kalnichevski wrote: Just one. One can make several HttpClient instances share the same connection manager, though, (which is not recommended). Got it. Thanks! Christine

Re: Multiple calls to HttpClient

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 11:11 -0700, Mohit Anchlia wrote: thanks. But can I share same HttpClient accross threads or do I need to synchronize for each thread. I am still not sure why was I getting errors when I tries using one instance of HttpClient accross threads. Another question I have is

Re: sever side basic auth in 4.0 core?

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 14:27 -0400, Tim Julien wrote: There seems to be alot of support for Basic Authentication (and other schemes) in httpclient 4.0. I'm wondering if any work has been done to support server side auth processing - for use with httpcore? thx! -Tim Tim, HttpCore

Re: MultipartRequestEntity Rollback

2008-10-18 Thread Oleg Kalnichevski
On Fri, 2008-10-17 at 07:36 -0400, Being Contrarian wrote: Hello, If I have 100 files to upload, and if I encounter an error (lets say I yank out my network cable) on the 65th file, will the entire MultipartRequest be cancelled? In other words, on the HTTPS server to which I am uploading

[ANNOUNCEMENT] HttpComponents HttpCore 4.0-beta3 released

2008-10-19 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce the release of HttpComponents HttpCore 4.0-beta3. This is a maintenance release, which addresses a number of issues discovered since the previous release. The only significant new feature is an addition of an OSGi compliant bundle

Re: HTTP compression

2008-10-20 Thread Oleg Kalnichevski
, 2008 at 11:48 AM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Sat, 2008-10-18 at 18:08 -0700, cowwoc wrote: I am glad to see this works, but I am surprised that server to client compression is not handled more seamlessly out-of-the-box. I was actually wondering about client to server GZip

Re: HttpClient and cookies

2008-10-21 Thread Oleg Kalnichevski
On Tue, 2008-10-21 at 08:45 +0200, Reinhard Pagitsch wrote: Hello Joseph, But why my Browsers (FF and IE) are sending the cookies back correctly? Or the Browsers are also broken? This is a _server_ side problem. This has nothing to do with browsers. By the way all common browsers have to

Re: HttpClient and cookies

2008-10-22 Thread Oleg Kalnichevski
On Wed, 2008-10-22 at 19:15 +0100, sebb wrote: On 22/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-10-22 at 19:00 +0100, sebb wrote: On 22/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-10-22 at 11:52 +0100, sebb wrote: On 22/10/2008, Oleg

Re: Preemptive authentication throws IllegalStateException using ISA proxy server

2008-10-22 Thread Oleg Kalnichevski
, Henrich Inactive hide details for Oleg Kalnichevski [EMAIL PROTECTED]Oleg Kalnichevski [EMAIL PROTECTED] Oleg Kalnichevski [EMAIL PROTECTED] 10/15/2008 10:13 AM

Re: HttpClient and Siteminder

2008-10-22 Thread Oleg Kalnichevski
On Wed, 2008-10-22 at 08:32 -0700, Stone, Robert wrote: Hi, I'm trying to get access code for URL that is protected by Siteminder (SM). Elsewhere in the code I'm getting SM cookie for the current user. Now I'm trying to reuse this cookie to access URL and get the access code. The

Re: UTF8 problem?

2008-10-25 Thread Oleg Kalnichevski
On Thu, 2008-10-23 at 09:36 +, Mike Kyle wrote: I set an EntityEnclosingMethod request entity to be a ByteArrayRequestEntity. This entity has the Java characters \u4E2D\u6587 as the corresponding UTF8 bytes (UTF8 = 0xE4,0xB8,0xAD,0xE6,0x96,0x87). This is confirmed by logging

Re: HttpConnection.flushRequestOutputStream() sometimes lasts too long

2008-10-25 Thread Oleg Kalnichevski
On Thu, 2008-10-23 at 18:43 +0200, Furmaniak Christophe wrote: Hi, we've developped a web application performance tool. Our product intensivly uses httpclient (currently 3.1) to measure response time of these web applications (single url or sequence of url to copy a human being

Re: HTTP PATCH

2008-10-25 Thread Oleg Kalnichevski
On Thu, 2008-10-23 at 17:29 -0700, cowwoc wrote: Hi, I'm just curious, if I wanted to issue extended HTTP methods using HttpClient, such as HTTP PATCH, would it be possible? Does HttpClient hard-code the list of HTTP methods or is this extensible? Extensible. Oleg Thank you, Gili

Re: Problem connecting to IIS server asp .Net website with HttpClient

2008-10-25 Thread Oleg Kalnichevski
On Fri, 2008-10-24 at 10:51 +0530, shyam wrote: Hi, I am using NTCredential class to login to an ASP.Net website. I am getting a page which says Object moved. But when I try to get that location I am not getting the correct page . I think it returns a 401 unauthorized

Re: Multipart

2008-10-26 Thread Oleg Kalnichevski
On Sun, 2008-10-26 at 01:14 +0200, Christine wrote: Oleg, I found your entity.mime package, for multipart messages in httpClient 4.0. It rocks! Works on android too. I found the sources in apache svn, when will there be an official package? Can I use it as is, for now? Thanks for making it

RE: HttpConnection.flushRequestOutputStream() sometimes lasts too long

2008-10-28 Thread Oleg Kalnichevski
On Mon, 2008-10-27 at 09:24 +0100, Furmaniak Christophe wrote: ... Ok, thanks. Could you just confirm that the HttpConnection.flushRequestOutputStream() stuff happens when the request is sent to the remote server (and that it's not related to the response reading)? I confirm that

Re: ConnectException not handled in DefaultHttpMethodRetryHandler

2008-10-28 Thread Oleg Kalnichevski
On Mon, 2008-10-27 at 15:18 +0100, Jaroslav Bielcik wrote: Hi, i am using commons-httpclient.3.0.1 and I am sending some requests through https protocol. I have a problem with a long creation of connection if ip address of remote service is not existing. I think problem is in the situation

Re: NTLM-Proxy authentication and SSL-target

2008-10-28 Thread Oleg Kalnichevski
On Mon, 2008-10-27 at 15:46 +0100, Cech. Ulrich wrote: Hello, I have a problem with SSL target over a proxy. I use the example of the HttpClient-code (4.0 beta), without an SSL-target, everything work fine. But if I change the target to port 443 and https (s. commented line), I receive the

Re: MultithreadedHttpConnectionManager and high loads

2008-10-28 Thread Oleg Kalnichevski
On Tue, 2008-10-28 at 09:19 -0700, Tatu Saloranta wrote: --- On Mon, 10/27/08, sebb [EMAIL PROTECTED] wrote: From: sebb [EMAIL PROTECTED] Subject: Re: MultithreadedHttpConnectionManager and high loads To: HttpClient User Discussion httpclient-users@hc.apache.org Date: Monday, October

Re: MultithreadedHttpConnectionManager and high loads

2008-10-29 Thread Oleg Kalnichevski
On Tue, 2008-10-28 at 23:51 +, sebb wrote: On 28/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Tue, 2008-10-28 at 09:19 -0700, Tatu Saloranta wrote: --- On Mon, 10/27/08, sebb [EMAIL PROTECTED] wrote: From: sebb [EMAIL PROTECTED] Subject: Re

Re: AW: NTLM-Proxy authentication and SSL-target

2008-10-29 Thread Oleg Kalnichevski
On Wed, 2008-10-29 at 09:17 +0100, Cech. Ulrich wrote: Hi Oleg, Thanks for your reply. Correct, I use the NTLM-support like it is described in the documentation (with jcifs etc.). And that worked fine for no-SSL-targets. Thanks for your help, Ulrich Ulrich, The version of Squid you

Re: ContentType in FileBody

2008-10-31 Thread Oleg Kalnichevski
On Thu, 2008-10-30 at 13:32 +0100, Christine wrote: Hi, I'm probably overlooking something, but how do I set the content-type in a filebody in a multipart message? By default it gets set to application/octetstream but it needs to be image/jpeg. I'm trying to upload a file to Picasaweb.

Re: [ANN] Restlet 1.1 released with HTTP Client connector

2008-10-31 Thread Oleg Kalnichevski
On Fri, 2008-10-31 at 13:14 +0100, Jerome Louvel wrote: Hi all, We've just released Restlet 1.1.0 which includes Apache HTTP Client as one of our connectors. See full announce here: http://blog.noelios.com/2008/10/28/restlet-110-released/ See connector documentation here:

Re: httpclient timeout: https vs. http

2008-10-31 Thread Oleg Kalnichevski
On Thu, 2008-10-30 at 15:54 -0700, Ben Smith wrote: Hi All, I ran a code from one of your post as below by Oleg with two different urls. url 1: http://www.au.yahoo.com/ url 2: https://rtdsl-uat.princetonecom.com/pngRTDS/scanline/xml url 1 gave the same result as your post, while url 2

Re: httpclient timeout: https vs. http

2008-11-04 Thread Oleg Kalnichevski
, Oleg Kalnichevski [EMAIL PROTECTED] wrote: From: Oleg Kalnichevski [EMAIL PROTECTED] Subject: Re: httpclient timeout: https vs. http To: httpclient-users@hc.apache.org Date: Friday, October 31, 2008, 8:23 AM On Thu, 2008-10-30 at 15:54 -0700, Ben Smith wrote: Hi All, I ran a code

Re: Exceptions getting silently eaten away

2008-11-05 Thread Oleg Kalnichevski
On Wed, 2008-11-05 at 18:02 +0530, hemant wrote: Hi, I am using httpcore-nio 4.0 beta 2, client extensions for consuming a web service which uses http push. I am quite perplexed by the behavior of library where its eating all the throw exceptions thrown in any of the callback methods

Re: httpclient timeout: https vs. http

2008-11-05 Thread Oleg Kalnichevski
(IOException ioe) { System.out.println(sslPostMsg2(): exception caught + ioe.getMessage()); System.out.println(sslPostMsg2(): + ioe.getCause()); throw ioe; } finally { postmethod.releaseConnection(); } --- On Tue, 11/4/08, Oleg Kalnichevski [EMAIL PROTECTED

Re: How to retireve parameter's value from a ResponseBody of a post method.

2008-11-05 Thread Oleg Kalnichevski
On Wed, 2008-11-05 at 20:39 +0530, Pronab Bhattacharyya wrote: I want to get a particular parameter's value that have in the response body of the Http post method. As we know that the getResponseBodyAsStream of PostMethod returns the whole response body. But I only have to retrieve some

Re: AW: NTLM-Proxy authentication and SSL-target

2008-11-05 Thread Oleg Kalnichevski
On Wed, 2008-11-05 at 16:17 +0100, Cech. Ulrich wrote: The version of Squid you are using appears broken. The proxy keeps one sending 'Proxy-Connection: close' which is wrong given the fact that NTLM requires a persistent connection in order to function. Hi Oleg, But how can it be

Re: Session handling in HttpClient

2008-11-11 Thread Oleg Kalnichevski
On Fri, 2008-11-07 at 03:48 -0800, Eugene Kondrashev wrote: I see.. But, how can I recognize the session id cookie? I am afraid I do not have any good news for you. In theory server can use any label to designate session id cookie. Is there some standard way to get sessionID cookie through

Re: HC 3.0.1: getParams can't compile

2008-11-18 Thread Oleg Kalnichevski
On Sat, 2008-11-15 at 06:23 -0800, Angelo Chen wrote: Hi, Following code does not compile: HttpClient client = new HttpClient(); client.getParams().setParameter(http.useragent, My Browser); looks like getParams not part of HttpClient, but I can see that in code complete under Intellij's

Re: HC 4.0 POST Form Parameter

2008-11-18 Thread Oleg Kalnichevski
On Fri, 2008-11-14 at 16:45 +0200, Burak Oguz wrote: Hi all, I am using HC 4.0 Beta 1, and I really could not understand how can I send binary form parameters inside a post request. What _exactly_ do you mean by binary form parameters? Multipart forms? I tried using with entity(using

Re: Preemptive authentication throws IllegalStateException using ISA proxy server

2008-11-18 Thread Oleg Kalnichevski
... The examples given for preemptive authentication for HttpClient 3 require the preemptive credentials are known in advance. I do not understand. How exactly do you intend to authenticate preemptively without knowing credentials in advance? One can observe this in a single

Re: Telling the server to close its connection?

2008-11-18 Thread Oleg Kalnichevski
On Mon, 2008-11-17 at 16:39 -0800, Adrian Blakey wrote: My server does not seem to want to close the connection. When I run this in NetBeans the read method blocks and I get a notification that says - Step is blocked by suspended thread Reference Handler The content length header is not

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