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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to