hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Automatic form log in
Date Sun, 15 Feb 2004 13:50:13 GMT
Kaushik,

Usually java.net.UnknownHostException means that your DNS cannot resolve
a host name to its respective IP address. This problem has nothing to do
with form-based login or HttpClient as such. Please make sure that your
TCP/IP stack is setup properly.

Oleg

On Sat, 2004-02-14 at 02:09, Kaushik Lakshmanan wrote:
> Hello,
> 
> I am trying to uses the FormLoginDemo.java example to
> log on to automate logging in to a website.
> 
> There are couple of parameters that I have set in the
> program
> 
>  static final String LOGON_SITE =
> "http://www.imdb.com/register/login";
>  static final int    LOGON_PORT = 80;
> 
> The other parameters that I set were the
> NameValuepairs
> 
>  NameValuePair action   = new NameValuePair("action",
> "login");
>  NameValuePair url      = new NameValuePair("url",
> "/index.html");
>  NameValuePair userid   = new NameValuePair("login",
> "user");
>  NameValuePair password = new
> NameValuePair("password", "passwd");
> 
> where instead of "user" and "passwd" I used my own
> username and password. 
> 
> The program throws a java.net.UnknownHostException:
> www.imdb.com/register/login
> 
> Please do let me know if I am doing something wrong.
> 
> thanks in advance,
> --Kaushik
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 


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


Mime
View raw message