Hi,
I'm developing a wbe crawler in Java and have got a reasonable way, with the exception of setting the user agent. Currently it seems to be "Java1.3.0". Here's a snippet of code I'm using if it's any help:
URLConnection urlConnection = url.openConnection();
System.out.println("Downloading " + url.toString());
urlConnection.setAllowUserInteraction(false);
InputStream urlStream = url.openStream();
Is there any way of setting the user agent?
Thanks in advance if you can help with this!
I'm developing a wbe crawler in Java and have got a reasonable way, with the exception of setting the user agent. Currently it seems to be "Java1.3.0". Here's a snippet of code I'm using if it's any help:
URLConnection urlConnection = url.openConnection();
System.out.println("Downloading " + url.toString());
urlConnection.setAllowUserInteraction(false);
InputStream urlStream = url.openStream();
Is there any way of setting the user agent?
Thanks in advance if you can help with this!