commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Hudak" <charles.hu...@cardionet.com>
Subject RE: HttpClient - Using To Log-In
Date Tue, 14 Sep 2004 00:04:59 GMT
Your address is bogus. You cannot use an ip address AND domain syntax.
You can either use http://{yourdomain} or http://{youripaddress}

> -----Original Message-----
> From: Brant Hahn [mailto:brant.hahn@insightbb.com] 
> Sent: Monday, September 13, 2004 5:01 PM
> To: 'Jakarta Commons Users List'
> Subject: RE: HttpClient - Using To Log-In
> 
> 
> Ok, I'm trying to use the StrictSSLProtocolSocketFactory 
> class, which requires me to upgrade to HttpClient 3.0.  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:kedar@bancbridge.com] 
> 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: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message