On Tue, 2004-09-14 at 02:00, Brant Hahn wrote: > Ok, I'm trying to use the StrictSSLProtocolSocketFactory class, which > requires me to upgrade to HttpClient 3.0.
Just one additional comment. You do not have to upgrade to HttpClient 3.0 just to be able to use StrictSSLProtocolSocketFactory class. There's 2.0.x compatible version of this class as well: http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/contrib/org/apache/commons/httpclient/contrib/ssl/?only_with_tag=HTTPCLIENT_2_0_BRANCH Oleg > With the update, it looks like > I'm getting a bit more detailed information. First of all, the initial > hitting of the log-in page requires a GET to https://102.112.2o7.net, and > when I attempt this with HttpClient, it gives me the following warning: > WARNING: Cookie rejected: "$Version=0; > s_vi_qx7Dubydbqtuwx7Cx7Frqx7C=[CS]v4|CCBDC09-74330091|0[CE]; > $Domain=.2o7.net; $Path=/". Domain attribute ".2o7.net" violates RFC 2109: > host minus domain may not contain any dots > > Obviously, it doesn't like that I'm doing a hybrid of IP + a domain address. > Is there a way to get around this where the cookie does not get rejected? > > Also, before the main POST execution with my NameValuePair values, I > initially set to follow all redirects. This is now throwing an > IllegalArgumentException for HttpClient 3.0. The message is: Entity > enclosing requests cannot be redirected without user intervention. I've > attached my code...why is doing it? It's just a primitive boolean > argument...how can that be illegal if that's what the method signature > requests? > > Thanks! > Brant > > -----Original Message----- > From: Kedar Panse [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 12, 2004 10:53 PM > To: Jakarta Commons Users List > Subject: Re: HttpClient - Using To Log-In > > Brant, > > I use it regularly for all types of things. Are you using https? You > may have to use Easy/StrictSSLProtocolSocketFactory example given on > HttpClient website. Not sure what your problem could be from the > explaination > > > Kedar > > Brant Hahn wrote: > > >Hi, > > > > > > > >I've been trying off and on to use HttpClient to log-in to my brokerage > >account at Ameritrade to retrieve up-to-date details on my account there. > I > >have had no luck being able to log-in, even though it seems that all the > >right cookies are being set and all the form variables are begin posted via > >NameValuePair. Has anyone tried using HttpClient to get into their > >accounts, specifically with financial sites where security is a bit > >tighter..? If there are certain servers that HttpClient is unable to > >cooperate with, then please let me know. Otherwise, I will see about > >finding the time to put my code on here to see if you guys might show me if > >I'm doing something wrong. > > > > > > > >Thanks, > > > >Brant > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ______________________________________________________________________ > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
