Unable to Retrieve HtmlCode

Hello,

I am trying to retrieve html souce of webpages.The following code works fine for most of the Url's....

URL url = new URL("http://www.coupons-coupons-codes.com/search.asp");

InputStream ins=url.openStream(); // read the content of the url

BufferedReader in = new BufferedReader( new InputStreamReader(ins));

String inputLine,htmlCode;

while(( (inputLine = in.readLine()) != null)){

htmlCode.append=in.readLine();

}

System.out.println(htmlCode);

But some times its not retrieving html code...example of such url is "http:\\www.fetckbook.info","http://www.coupons-coupons-codes.com/search.asp"..

Can anyone help me in this...

Thanks in advance,

Ravi

[739 byte] By [rlinga] at [2007-9-30 17:38:41]
# 1
your code can get html code of these requests,who齭 response code is 200
powerise at 2007-7-6 14:07:19 > top of Java-index,Administration Tools,Sun Connection...
# 2
> > But some times its not retrieving html codeAnd what does it do? Nothing? Or it retrieves something else?
jschell at 2007-7-6 14:07:19 > top of Java-index,Administration Tools,Sun Connection...
# 3
I think I found the problem..the webpages iam trying to retrieve have a meta tag called "robot" which prevents other robotic programs from retrieving information from that webpage...so the input stream returned is empty.Anyhow,Thank Youravi
rlinga at 2007-7-6 14:07:19 > top of Java-index,Administration Tools,Sun Connection...