Re: HttpClient and cookies

2008-10-20 Thread Joseph Mocker
It sounds like your webserver, or whatever is generating & processing the session cookie, is in error. From my reads of RFC2109 & RFC2068, quotes are reserved characters, they are not allowed in the cookie value. They say the cookie value can be either token | quoted-string

Re: how to get redirect url from response with HttpClient 4?

2008-10-24 Thread Joseph Mocker
You can handle the redirect handling yourself with the HttpClientParams.setRedirecting(). Set redirecting to false. You will then start to see 301 & 302 status codes in response.getStatusLine().getStatusCode(). When you do, process the headers to look for the Location: header and restart you

Re: httpclient and xpath

2008-10-29 Thread Joseph Mocker
I am unclear on whether Lior wants to parse XML or HTML. Dom4j would work well for XML. I've used TagSoup for HTML (http://home.ccil.org/~cowan/XML/tagsoup/). --joe Raymond Kroeker wrote: Lior, I've had excellent results using dom4j. Just load the xml into an object and you can query the

Re: Question regarding the redirects

2009-09-08 Thread Joseph Mocker
There are multiple redirects from the page you are beginning with. Setting setFollowRedirects(false) means you will have to follow them all yourself. If you use wget you can see all the redirects: % wget -O /dev/null --no-check-certificate 'http://www.opensolaris.org/jive/login!withRedirect.js