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: Whole HTTP response as InputStream?

2008-02-29 Thread Sam Berlin
Could you create a custom InputStream that took the header response inputstream in its constructor, and returned one and then the other when reading? Sam On 2/29/08, ripok [EMAIL PROTECTED] wrote: I have a little problemo: I'm making HTTP request to a server that gives me back a kind of mime

Whole HTTP response as InputStream?

2008-02-29 Thread ripok
I have a little problemo: I'm making HTTP request to a server that gives me back a kind of mime message in the response, so the content-type of the HTTP response will be Content-Type: multipart/related;boundary=''. When I'm parsing that mime message (I use mime4j), the parser needs that

Re: Whole HTTP response as InputStream?

2008-02-29 Thread Alan Moss
Use a java.io.SequenceInputStream: //construct contentTypeHeader here StringBuffer buf = new StringBuffer(contentTypeHeader); SequenceInputStream seqIn = new SequenceInputStream( new StringBufferInputStream(buf), method.getResponseBodyAsStream()); //do

Re: ssl failure

2008-02-29 Thread Julius Davies
Hi, G. Garrett Campbell, The set of root certificate authorities that Java trusts by default tends to be a little smaller than Firefox and IE. It's located here: $JAVA_HOME/jre/lib/security/cacerts That's a keystore file, so you can use keytool to view and modify it. The password is changeit.

Re: Whole HTTP response as InputStream?

2008-02-29 Thread Tatu Saloranta
Can you perhaps just use java.io.SequenceInputStream, by creating simple dummy input stream for content type part (new ByteArrayInputStream(headerString.getBytes([whatever-encoding -you-got])) and chain this with body contents? It also seems strange that a library (mime4j) would require access to

Re: beginner doubt

2008-02-29 Thread Roland Weber
Hello Valentin, Everything seems to be OK but the only result I get is: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; !--!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN-- html xmlns=http://www.w3.org/1999/xhtml;

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

2008-02-29 Thread Roland Weber
micky wrote: Then I print out the cookies of the two connection, I found them are different. But the document said I don't need to care the cookie issue when I use HttpClient to login and continue browsing other pages. You don't have to take care of the cookies, but you have to make sure that