SessionID / Cookie issue with double-request to same host

2010-02-17 Thread Chris Englert
Hello, Any help on this subject would be greatly appreciated. I am having trouble passing cookies/session ID on a second request to the same host. The first request is a login POST to a form. The second is the GET in shown in the log. You can see at the end of the Login Post I have accepted ne

http client download files?

2010-02-17 Thread Geraldo Netto
Hi guys, how are you doing? i'm using http core/client on my undergrad project and i was unable to download binary file using http client i'd like to know if it is possible if so, would be possible to post a sketch? (i only managed to run example code/doing little modifications) i guess i would n

Re: Apache httpclient read timeout

2010-02-17 Thread Ken Krugler
FWIW, you could take a look at the SimpleHttpFetcher class in the Bixo project. This supports a "minimum response rate" config setting, which will abort a request if the average response rate drops below a threshold. -- Ken On Feb 3, 2010, at 2:40pm, Learn Learn wrote: Oleg, That's rig

Re: Using HttpClient (4) with 'per-connection' state

2010-02-17 Thread Oleg Kalnichevski
Sam Crawford wrote: Hi Dave, Take a look at this thread - http://old.nabble.com/Best-Practices-for-Multithreaded-use-of-HttpClient-(with-Cookies)--td27345690.html - I think that may help. I think, in your case, you're going to need to grab a new HttpClient instance from the ThreadSafeClientConn

Re: Using HttpClient (4) with 'per-connection' state

2010-02-17 Thread Sam Crawford
Hi Dave, Take a look at this thread - http://old.nabble.com/Best-Practices-for-Multithreaded-use-of-HttpClient-(with-Cookies)--td27345690.html - I think that may help. I think, in your case, you're going to need to grab a new HttpClient instance from the ThreadSafeClientConnectionManager if you w

Using HttpClient (4) with 'per-connection' state

2010-02-17 Thread Dave Irving
Hi, I'm using HttpClient (4) to talk to some web services. I'd like lots of requests to be sent in parallel, so I'm using ThreadSafeClientConnectionManager along with a high per-host total connection thresholds. All requests thru this client will be to the same host / port (and most of the time

RE: HTTPCORE memory leak on simple server implementation

2010-02-17 Thread Oleg Kalnichevski
On Wed, 2010-02-17 at 08:50 +0100, Francesco Toro XB wrote: > Thank you Oleg for the answer. > > You're right, into the simple HttpServer application I'm testing it makes no > sense to buffer request body. > The problem is that I introduced this buffering statement becouse We are > planning to

Re: Many services with different configurations ...

2010-02-17 Thread Oleg Kalnichevski
On Mon, 2010-02-15 at 13:25 -0800, Kaiser Sose wrote: > Hi all, > I need to write an "interface" (not in the oo meaning) that handles many > threads making some GET/POST on different websites. I used a > ThreadSafeClientConnManager inside a DefaultHttpClient but I wonder how to > set different para