Re: ATTN Open-source projects using HttpClient

2004-09-21 Thread Oleg Kalnichevski
I apologize for forgetting about Maven and Jelly. Are there any plans to evaluate HttpClient 3.0? We are trying to get some feedback about the new 3.0 API before the call the API freeze. Oleg On Tue, 2004-09-21 at 03:07, Dion Gillard wrote: Jelly and Maven both use httpclient. On Mon, 20

Re: ATTN Open-source projects using HttpClient

2004-09-21 Thread Dion Gillard
Jelly is going through a 1.0 release at the moment, but I think it's worth looking at it before then. On Tue, 21 Sep 2004 08:56:21 +0200, Oleg Kalnichevski [EMAIL PROTECTED] wrote: I apologize for forgetting about Maven and Jelly. Are there any plans to evaluate HttpClient 3.0? We are trying

Cookie problems / strict mode

2004-09-21 Thread Robert Gold
Hi, I am using http-client 2.0.1 (1 August 2004). I noticed that lots of websites just accept the cookies to be sent in one single line (like sent by IE). This is with http-client just possible in strict mode. But now I have a webserver which redirects me to an URL which is not allowed/valid in

Re: Cookie problems / strict mode

2004-09-21 Thread Oleg Kalnichevski
Robert, It is a known problem with HttpClient 2.0. There are three possibilities: (1) Use HttpClient 3.0, which provides fine-grained control over protocol compliance leniency. (2) Disable auto redirect and handle redirects manually

RE: Cookie problems / strict mode

2004-09-21 Thread Robert Gold
Thanks for the fast reply! 1) I'm not sure about using already the alpha version. 3) This is exactly what I didn't want to do, to create my own Get-, Post- and whatever method. 2) I'll be forced to do it like this even if I didn't want to correct the 'malformed' URL... But thanks for the

HttpClient Powered

2004-09-21 Thread Dmitriy
Hi I'd like to announce that enKoo's application WebApps is HttpClient powered. WebApps is enKoo's solution to provide secure remote access to web based (i.e. Intranet) application on a remote network. Details can be found at http://www.enkoo.com/webappssolution.htm. Thank You Dmitriy Ayrapetov

How to accept cookies in HttpClient.

2004-09-21 Thread tom yin
Hi, All, I got a problem when I try to go to a login page of a website. My code is like this: GetMethod defaultpage = new GetMethod(link); //defaultpage.setFollowRedirects(true); defaultpage.setQueryString(nameValuePairs);

How to accept cookies in HttpClient.

2004-09-21 Thread tom yin
Hi, All, I got a problem when I try to go to a login page of a website. My code is like this: GetMethod defaultpage = new GetMethod(link); //defaultpage.setFollowRedirects(true); defaultpage.setQueryString(nameValuePairs);

RE: url is Re: How to accept cookies in HttpClient.

2004-09-21 Thread Michael Dang
Open your alternate browser (Netscape? Mozilla?), or go to another machine and open IE, goto the url you sent, you will see the error page. Exactly it is the cookie you missed. So, clear your IE's cookie cache, find your way back to the site using the clean IE (well, IE never clean as it

RE: url is Re: How to accept cookies in HttpClient.

2004-09-21 Thread tom yin
Hi, Michael, Thanks a lot for your info. It's weired...In my computer, after I clean cookies, I will go to the error page if I click the link in this mail directly, but go to the right login page if I copy the link to the address bar and press enter key. The initial link is link1,

RE: url is Re: How to accept cookies in HttpClient.

2004-09-21 Thread Michael Dang
By the time you pasting the link, your IE probably obtained the cookie already, or it is showing you a cached page. This is what we should all blame IE. :) Anyway, reading your code, I suggest you don't muck with the cookie yourself, since cookie can change from time to time on the server

RE: url is Re: How to accept cookies in HttpClient.

2004-09-21 Thread Steve Johnson
Hi Tom, This is a little verbose, but our product that uses httpclient reaches the logon page with the cookes from the second(logon frame) link. We manage cookies externally to httpclient and sort-of emulate stepping through the browser. Here is the final link, request, 302 response, request,

Steve, you found the problem!RE: url is Re: How to accept cookies in HttpClient.

2004-09-21 Thread tom yin
Hello, Steve, Thanks a lot. I think you have almost found the real problem here. You are right, cookies have been set and link has been redirected to a new link, /sg1dgp9/tbiappt300/TbiaStatelessErrorPage, but this link, showing the error page, is not the expected url. The error page has the

detailed descrption for cookies problem in HttpClient.Thanks.

2004-09-21 Thread tom yin
Hi, guys, I am doing a intelligent spider projects, and trying to grab data from sites automatically. I don't know HttpClient a lot, but now I have collected data successfully from various websites with the help of you guys. (Oleg has helped me to solved a difficult problem yesterday. Thank

RE: url is Re: How to accept cookies in HttpClient.

2004-09-21 Thread Steve Johnson
Hi Tom, I get the same error page from Netscape, are you going through a proxy in IE? Thanks, Steve -Original Message- From: tom yin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 3:37 PM To: [EMAIL PROTECTED] Subject: url is Re: How to accept cookies in HttpClient.