Re: NullPointer with HttpClient 3.1 + IBM 1.4.1 JRE

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

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

2009-04-15 Thread Oleg Kalnichevski
unsuspecting HttpClient. A well designed application has to have a recovery code for such situations anyways, which kind of makes stale connection checking pretty much pointless. The performance is not that tiny. 30 milliseconds for small payloads that take only 3-5 milliseconds to execute is a lot

Re: WS Digest Authentication Issues

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

Re: WS Digest Authentication Issues

2009-04-17 Thread Oleg Kalnichevski
pcable wrote: Okay, well I finally got this working. There were two other setup issues: 1. I was trying to do this on my computer which has IIS 5.1, which for digest required the accounts encryped password to be saved in AD. So we switched to a test server that has IIS 6.0 2. Per http://suppor

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

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

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

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

Re: HttpClient performance

2009-04-21 Thread Oleg Kalnichevski
On Mon, Apr 20, 2009 at 10:35:25AM -0700, HockeyDave wrote: > > if (!connStrategy.keepAlive(response, context)) { > conn.close(); > } > > This throws and exception if response is null. I'm new to HttpCore > (experience is all in HttpClient), but I assume that you'd want this,

Re: Can servers "block" programmatic form submissions?

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

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

2009-04-21 Thread Oleg Kalnichevski
ct-continue handshake is the only way to get authentication working for entity enclosing requests with non-repeatable entities. This is the reason it is enabled per default. Hope this helps Oleg > Thanks, > -Guillaume > > > > From: Oleg Kalniche

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

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

Re: HttpClient performance

2009-04-21 Thread Oleg Kalnichevski
On Tue, Apr 21, 2009 at 05:26:06AM -0700, HockeyDave wrote: > > I wouldn't want to. I'm not pointing out that anything is wrong with > HttpCore. I'm just pointing out that your test case has a problem in its > code. > I am not sure I understand what test case you are referring to. > This test

Re: Can servers "block" programmatic form submissions?

2009-04-21 Thread Oleg Kalnichevski
ld look into? > There is no way around capturing HTTP packets generated by a browser and emulating the same HTTP session using HttpClient (or some other HTTP transport library) Hope this helps Oleg > Again, thanks for your help, > - Stephanie > > -Original Message-

Re: mime-boundary headers

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

Re: HttpClient 4: Disable Default Header

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

Re: Weird problems with httpclient 4.0beta2 and httpcore 4.0

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

Re: mime-boundary headers

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

Re: Weird problems with httpclient 4.0beta2 and httpcore 4.0

2009-04-22 Thread Oleg Kalnichevski
On Wed, Apr 22, 2009 at 08:53:45AM -0400, Jeudy, Guillaume wrote: > > > > > From: Oleg Kalnichevski [mailto:ol...@apache.org] > Sent: Wed 4/22/2009 6:01 AM > To: HttpClient User Discussion > Subject: Re: Weird problems with httpclient 4

Re: Weird problems with httpclient 4.0beta2 and httpcore 4.0

2009-04-22 Thread Oleg Kalnichevski
> > > From: Jeudy, Guillaume [mailto:gje...@teksystems.com] > Sent: Wed 4/22/2009 8:53 AM > To: HttpClient User Discussion > Subject: RE: Weird problems with httpclient 4.0beta2 and httpcore 4.0 > > > > > > __

Re: mime-boundary headers

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

Re: mime-boundary headers

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

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

2009-04-27 Thread Oleg Kalnichevski
xy using HttpCore classes only giving you a full control over the entire HTTP transport both client and server side. Unfortunately this is all I can do for you. Oleg > Thanks, > > Sam > > > > > > 2009/4/14 Oleg Kalnichevski > > > Sam Crawford wrote:

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

2009-04-27 Thread Oleg Kalnichevski
t help. Oleg Packet captures > have yet to prove or disprove the theory, as it happens quite infrequently. > > I'll update this thread when I crack it :-) > > Thanks, > > Sam > > > > 2009/4/27 Oleg Kalnichevski > > > On Thu, Apr 23, 2009 at 11:

Re: Connection metrics with Http Client/Core

2009-04-27 Thread Oleg Kalnichevski
g HttpClient, that is. Oleg > -Original Message- > From: Oleg Kalnichevski [mailto:ol...@apache.org] > Sent: Sunday, November 23, 2008 9:23 AM > To: HttpClient User Discussion > Subject: Re: Connection metrics with Http Client/Core > > Chris Lowe wrote: > > Thanks Ol

Re: Problem in passing parameters in HttpPost and HttpGet

2009-04-28 Thread Oleg Kalnichevski
On Tue, Apr 28, 2009 at 11:28:57AM +0530, Phani Sajja wrote: > Hi All, > I need to bypass internal proxy firewall to connect to the > internet. I have no problem connecting to the internet with the following > code. > > DefaultHttpClient httpclient = new DefaultHttpClient(); >

Re: [Q]log4j logging setup

2009-04-29 Thread Oleg Kalnichevski
On Wed, Apr 29, 2009 at 02:33:38AM -0400, V S P wrote: > Hello > > wanted to ask if a combination of > http-components core 4.0 > commons-logging-1.1 > log4j-1.2.13 > > is supposed to be working to produce DEBUG logging > > Do I possibly need to pass any special args > to things like HttpReques

Re: how to set (local) source port?

2009-04-30 Thread Oleg Kalnichevski
John Walton wrote: I need to set the local source port on outbound connections with httpclient 4.0. I can see the PlainSocketFactory includes the localport number in a connectSocket call. Can anyone help with any hints on how to get the local port set? Thanks, JW Use 'http.route.local-addr

Re: Issue with HttpMethodRetryHandler

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

Re: Connection Reuse.

2009-05-03 Thread Oleg Kalnichevski
Keean Schupke wrote: Hi, I searched for old posts on this topic, but none seem to cover my case exactly. I suspect I am dealing with a non-standard webserver. However, a telnet to the server on port 80 allows several HTTP commands to be run before the server closes the connection (at least 6 if

Re: Connection Reuse.

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

Re: Connection Reuse.

2009-05-03 Thread Oleg Kalnichevski
Keean Schupke wrote: 2009/5/3 Oleg Kalnichevski : Keean Schupke wrote: As I pointed out the server is keeping the connection open and accepting more requests... this is confirmed by manually pasting the requests into a telnet session. Huh? Telneting to an SSL protected port? How exactly do

Re: Setting timeouts in 4.0

2009-05-05 Thread Oleg Kalnichevski
On Mon, May 04, 2009 at 04:30:15PM -0700, Ken Krugler wrote: > Hi all, > > In Http 3.1, the Nutch code base would configure timeouts using the > following snippet of code: > > MultiThreadedHttpConnectionManager connectionManager = > new MultiThreadedHttpConnectionManager(); > >

Re: Setting timeouts in 4.0

2009-05-06 Thread Oleg Kalnichevski
On Tue, May 05, 2009 at 02:36:27PM -0700, Ken Krugler wrote: >> On Mon, May 04, 2009 at 04:30:15PM -0700, Ken Krugler wrote: >>> Hi all, >>> >>> In Http 3.1, the Nutch code base would configure timeouts using the >>> following snippet of code: >>> >>> MultiThreadedHttpConnectionManager co

Re: Reuse Digest authentication nonce

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

Re: Reuse Digest authentication nonce

2009-05-06 Thread Oleg Kalnichevski
iginal Message- > From: Oleg Kalnichevski [mailto:ol...@apache.org] > Sent: Wednesday, May 06, 2009 11:36 AM > To: HttpClient User Discussion > Subject: Re: Reuse Digest authentication nonce > > On Wed, May 06, 2009 at 11:06:48AM -0400, Will Johnson wrote: > > I'

Re: Httpclient and NTLMv1 protocol support

2009-05-06 Thread Oleg Kalnichevski
On Wed, May 06, 2009 at 09:36:30AM -0700, yoga p wrote: > Hi, > > We are using HttpClient (commons-httpclient-3.0-rc2.jar) for NTLM > Authentication and currently facing issues when the following security > settings in Windows Server 2003 or (win xp) is enabled: > Control Panel -> Administrative T

Re: Httpclient and NTLMv1 protocol support

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

Re: Httpclient and NTLMv1 protocol support

2009-05-07 Thread Oleg Kalnichevski
oft network protocols barring Microsoft itself. Oleg > On Wed, May 6, 2009 at 11:36 AM, Oleg Kalnichevski wrote: > > > yoga p wrote: > > > >> Hi Oleg, > >> > >> Thanks for you suggestion. > >> > >> So it seems that httpclient-3.0-r

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

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

Re: receiveResponseHeader() halting

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

Re: receiveResponseHeader() halting

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

Re: receiveResponseHeader() halting

2009-05-13 Thread Oleg Kalnichevski
On Wed, May 13, 2009 at 03:13:06PM +0200, Alexander M??ller wrote: > >>> On 13.05.2009 at 14:50, in message > >>> <20090513125036.ga2...@ok2cons2.nine.ch>, Oleg Kalnichevski > >>> wrote: > > > > Most likely the AbstractSessionInputBuffer#f

Re: receiveResponseHeader() halting

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

Re: Retry handler for Connection refused exception

2009-05-14 Thread Oleg Kalnichevski
On Wed, May 13, 2009 at 02:20:05PM +0400, Anton Marchenkov wrote: > Hi! > > What's the best way to retry request after an exceptions like > "Connection to http://*** refused"? > > I tried HttpRequestRetryHandler but it looks like it doesn't handle it. > Anton, Why would you want to retry 'conne

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

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

Re: Preferred use of HttpResponseInterceptor ?

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

Re: Android project using httpclient —> http.cli ent (apache), post/get method

2009-05-17 Thread Oleg Kalnichevski
Michaël wrote: Hi all, I'm doing a Get and Post method for an android project and I need to "translate" HttpClient 3.x to HttpClient 4.x (using by android). My problem is that I'm not sure of what I have done and I don't find the "translation" of some methods... This is the HttpClient 3.x I have

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

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

Re: Need to send uri that is not encoded any way this is possible?

2009-05-20 Thread Oleg Kalnichevski
On Tue, May 19, 2009 at 07:17:58PM -0700, tyweed wrote: > > > Please can someone help me! I'm using the apache commons client and > am very pleased. However, the specific use I have i need to make sure > that the url's and post data are not encoded so that when i make the request > and get > b

Re: 4.0 client performance?

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

Re: tradeoffs of CoreConnectionPNames.SOCKET_BUFFER_SIZE

2009-05-22 Thread Oleg Kalnichevski
On Thu, May 21, 2009 at 05:15:54PM -0700, Pankaj Gupta wrote: > Hi, > > What are the tradeoffs of using a very large value (e.g., say 1MB) of > CoreConnectionPNames.SOCKET_BUFFER_SIZE on client performance? > > Socket buffers larger than 8192 do not seem to produce any tangible difference in ter

Re: Dealing with invalid/inconsistent response header

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

Re: HttpClient Cookies and Exchange Server FBA Authentication

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

RE: HttpClient Cookies and Exchange Server FBA Authentication

2009-05-30 Thread Oleg Kalnichevski
er - << "HTTP/1.1 200 > OK[\r][\n]" > 2009/05/29 12:09:53:663 PDT [DEBUG] header - << "HTTP/1.1 200 > OK[\r][\n]" > 2009/05/29 12:09:53:663 PDT [DEBUG] header - << "Cache-Control: private, > max-age=0[\r][\n]" > 2009/05/29 12:09:53

Re: Problems to use HTTP proxy settings

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

Re: Infinite loop when proxy credentials are wrong

2009-06-02 Thread Oleg Kalnichevski
lmenaria wrote: Hello everyone, I have created a sample application which connect to site with GetMethod, its working fine. Its also working fine when I tried with proxy, But when I provided wrong proxy credentials then it hangs. Have tried with enabled info logging and got it goes in infinite

Re: Newbie proxy problems

2009-06-02 Thread Oleg Kalnichevski
Bill ENnis wrote: I recently downloaded HttpClient and HttpCore and am trying to pull down information from various web pages. I need to do this from behind a web proxy. I did see an example with the downloads named ClientExecuteProxy. However, this example doesn't seem to use Proxy Authenticatio

Re: Problems to use HTTP proxy settings

2009-06-02 Thread Oleg Kalnichevski
ther is it OK to ask on port 80. I have tried to use port 8080 - there is the same HTTP404 error and I also tried to use port 3128 - but then the error was connection refused. So - is there any suggestion about some public proxy server for such tests, maybe the public proxy server are for view

Re: Retrieving the underlying Socket from HttpClient

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

Re: NullPointerException in AsyncNHttpClientHandler

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

Re: H4 - B3

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

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

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

Re: redirect fails when NTLM authentication is used for proxy

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

[HttpClient] Tutorial is content complete and ready for review

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

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

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

Re: TUTORIAL AND ABORT METHOD

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

Re: Sending cookies promiscuously

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

Re: Upload file - multipart

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

Re: Simple call to URL to update data values

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

Re: HttpClient 4.0 Tutorial, and SSLSocketFactory

2009-06-16 Thread Oleg Kalnichevski
On Mon, Jun 15, 2009 at 11:15:47PM -0700, Will McQueen wrote: > > Hi, > > The HttpClient 4.0 tutorial says: > > SSLSocketFactory sf = new SSLSocketFactory(sslcontext); > > ...but I don't see that the javax.net.ssl.SSLSocketFactory takes a param of > type SSLContext. Did you mean: > > SSLSock

Re: Http Client 4.0 dead locks with spotty internet coverage

2009-06-17 Thread Oleg Kalnichevski
David Spectar wrote: Greetings fello Http Client Users, I was trying out HttpClient 4.0 and noticed that I could easily get the code to deadlock when my internet coverage would go down. It didn't happen every time it went down, but if I had WIFI on that went down every couple of minutes and s

Re: Newbie question about digest authentication

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

Re: PostMethod.setQueryString vs PostMethod.addParameter

2009-06-18 Thread Oleg Kalnichevski
On Wed, Jun 17, 2009 at 07:03:52PM -0500, charlie wrote: > Java 1.6 > HttpClient 3.1 > OS: Windows & Linux > > I'm seeing some odd behavior, I am trying to POST to a website, using the > setQueryString method with my test data, it works fine all goes well. Using > the addParameter(key,value) , I

Re: redirect guidance for httpnio and redirects

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

Re: PostMethod.setQueryString vs PostMethod.addParameter

2009-06-18 Thread Oleg Kalnichevski
anation I can think of given the description of the problem. Oleg > On Thu, Jun 18, 2009 at 8:54 AM, Oleg Kalnichevski wrote: > > > On Wed, Jun 17, 2009 at 07:03:52PM -0500, charlie wrote: > > > Java 1.6 > > > HttpClient 3.1 > > > OS: Windows & Linux &

Re: PostMethod.setQueryString vs PostMethod.addParameter

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

Re: Http Client 4.0 dead locks with spotty internet coverage

2009-06-22 Thread Oleg Kalnichevski
> Thanks, > Michael > Michael, Simply use 'http.socket.timeout' parameter http://wiki.apache.org/HttpComponents/HttpClientTutorial Oleg > > > - Original Message > From: Oleg Kalnichevski > To: HttpClient User Discussion > Sent: Wednesday, June 17

Re: Chunk encoding multipart post

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

[ANNOUNCEMENT] HttpComponents HttpCore 4.0.1 (GA) Released

2009-06-22 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce the release of HttpComponents HttpCore 4.0.1. This is a patch release addressing a number of issues discovered since the 4.0 release. Users of NIO module are advised to upgrade. Download - Release not

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

2009-06-24 Thread Oleg Kalnichevski
On Mon, Jun 22, 2009 at 05:12:11PM -0500, Patricia Goldweic wrote: > Hi, > I've (very) recently started using httpclient (3.1) in my Java app. I've > successfully been able to make connections from a program running on server > A to another program (servlet) running on server B, where B uses Tomcat

Re: Custom ProtocolSocketFactory not being used

2009-06-24 Thread Oleg Kalnichevski
On Mon, Jun 22, 2009 at 07:42:15PM -0500, Ian Pilcher wrote: > I am following the instructions at > http://hc.apache.org/httpclient-3.x/sslguide.html to connect to a server > whose certificate is signed by an internal certificate authority (CA). > I've created my own implementation of SecureProtoco

Re: redirect fails when NTLM authentication is used for proxy

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

Re: Getting a warning after calling MultiThreadedHttpConnectionManager.shutdown()

2009-06-24 Thread Oleg Kalnichevski
On Tue, Jun 23, 2009 at 10:24:36AM +0530, Dimuthu Gamage wrote: > Hi, > I'm using http-client version 3.1. I got a warning "HttpConnectionManager is > null. Connection cannot be released." when I tried to shutdown > MultiThreadedHttpConnectionManager after doing a 'put' operation. (In fact > I'm u

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

2009-06-24 Thread Oleg Kalnichevski
IBM JRE 6.0). The detailed list of JIRAs targeted for 4.1 can be found here: https://issues.apache.org/jira/browse/HTTPCORE/fixforversion/12313548 Hope this helps Oleg > On Mon, Jun 22, 2009 at 8:43 PM, Oleg Kalnichevski wrote: > > > The Apache HttpComponents project is pleased

Re: httpclient 4.x:407 Proxy Authentication Required

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

Re: HttpClient instance management

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

Re: HttpClient instance management

2009-06-24 Thread Oleg Kalnichevski
d be using ThreadSafeClientConnManager instead of SingleClientConnManager. For details see the section on connection management in the HttpClient tutorial: http://wiki.apache.org/HttpComponents/HttpClientTutorial Oleg > Regards, > > Imre > > > On 2009.06.24., at 15:57, Oleg Kalnichevski

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

2009-06-24 Thread Oleg Kalnichevski
at of the AuthScope do not match. Oleg > > > -Original Message- > > From: Oleg Kalnichevski [mailto:ol...@apache.org] > > Sent: Wednesday, June 24, 2009 7:47 AM > > To: HttpClient User Discussion > > Subject: Re: any suggestions as to what could be wrong here? &g

[HttpClient] HttpClient 4.0 rc1

2009-06-25 Thread Oleg Kalnichevski
Folks Please test your applications against the latest build of HttpClient 4.0 http://people.apache.org/~olegk/httpclient-4.0-rc1/ If no new bugs are reports this code is what will get released as HttpClient 4.0 GA. Oleg -

Re: redirect fails when NTLM authentication is used for proxy

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

Re: Status tracking

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

Re: Status tracking

2009-06-26 Thread Oleg Kalnichevski
s looking like AOP is the way out here... > For stable releases, it appears so. Oleg > What do you think? > -Adrian > jclouds > > On Fri, Jun 26, 2009 at 3:20 PM, Oleg Kalnichevski wrote: > > > On Fri, Jun 26, 2009 at 01:33:30PM +0200, Adrian Cole wrote: >

Re: Chunk encoding multipart post

2009-06-28 Thread Oleg Kalnichevski
From: Oleg Kalnichevski To: HttpClient User Discussion Sent: Monday, June 22, 2009 6:48:51 AM Subject: Re: Chunk encoding multipart post On Sat, Jun 20, 2009 at 05:25:03PM -0700, spencer wrote: Hi, Is it possible to chunk encode a multipart post? I

Re: redirect fails when NTLM authentication is used for proxy

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

Re: Connection Reset as a Proxy

2009-07-01 Thread Oleg Kalnichevski
On Tue, Jun 30, 2009 at 04:34:11PM +0300, Oz Levanon wrote: > Hi. > > I'm writing a server that acts as an HTTP Proxy, and I connect to the > web using HttpClient (version 3.1) > > > > From time to time I'm experiencing "Connection Reset" from the web. I > guess this is because I try to reuse

Re: Request parameters?

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

Re: stateful httpclient call in servlet

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

Re: QUESTION ABOUT COOKIES

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

Re: Behavioural difference between 4.0b2 and 4.0-rc1

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

Re: QUESTION ABOUT COOKIES

2009-07-07 Thread Oleg Kalnichevski
e is expected to be a String, and I have a java.util.Date. How > can I make this conversion? > > Thanks in advance, > Post a wire log of the session: http://hc.apache.org/httpcomponents-client/logging.html Also, try setting cookie version to version 1 to force the use of a RFC

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

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

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