Hi All,
I am trying to get the url with following using Java. I need to change
the user agent but I can not figure out how. Can you help me?
URL url = new URL(url);
BufferedReader in = new BufferedReader(new
InputStreamReader(url.openStream()));
Thanks a lot.
opalpa@gmail.com opalinski from opalpaweb - 02 Oct 2006 21:21 GMT
Change it on URLConnection not on URL
URLConnection conn = url.openConnection();
conn.setRequestProperty("User-Agent","");
Opalinski
opa...@gmail.com
http://www.geocities.com/opalpaweb/