Link to home
Start Free TrialLog in
Avatar of osiruz
osiruz

asked on

URL Grabber

hi,

i've the following code snippet to grab the return URL of another site:
--------------------------
urlRemote = new URL(strURL);              
in = new BufferedReader(
new InputStreamReader(urlRemote.openStream()));
while ( (strLine = in.readLine() ) != null )
{
     vecReturn.add(strLine);
}
in.close();

---------------------------
when i reach the above piece of codes, i was thrown the java.io.FileNotFoundException.

can someone tell me what could possibly be wrong?
thanks.
Avatar of girionis
girionis
Flag of Greece image

 Well it is obvious that it cannot find the file. Are you sure that the file you are trying to access exists?
Avatar of osiruz
osiruz

ASKER

im not familiar with this url grabber thing..
i do not understand the above code fully,
can someone help ? If i were to grab a particular URL response from another site, how can this be achieve?
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of osiruz

ASKER

im not familiar with this url grabber thing..
i do not understand the above code fully,
can someone help ? If i were to grab a particular URL response from another site, how can this be achieve?
Avatar of osiruz

ASKER

thanks..i'll need some time to digest that.
thanks again for the response.
Avatar of osiruz

ASKER

Thanks for the help.
 Not at all. I am glad I helped. :-)