Re: Java and robots...

Art Matheny (matheny@usf.edu)
Thu, 13 Feb 1997 17:14:20 -0500 (EST)


On Thu, 13 Feb 1997, Manuel J. Kwak wrote:

> Hello!
> Im coding a Web-robot using Java as implementation language, and I want
> to send the user-agent field with the info about the robot to the WWW
> server. But I haven't found an easy way to made it using the URL
> classes.
> Anybody knows something about that?

I believe you are correct. Unless I am mistaken, the URL class gives you
no control of the HTTP request headers. Take a look at the Socket class.
It looks like that will to a better job (but will obviously involve more
programming).

-- 
 LLLL  LLLLL LLLLLL  Arthur Matheny       LIB 612
LL  LL LL  LL  LL    Academic Computing   University of South Florida
LLLLLL LLLLL   LL    matheny@usf.edu      Tampa, FL 33620
LL  LL LL LL   LL    813-974-1795         FAX: 813-974-1799
LL  LL LL  LL  LL    http://www.acomp.usf.edu/

_________________________________________________ This messages was sent by the robots mailing list. To unsubscribe, send mail to robots-request@webcrawler.com with the word "unsubscribe" in the body. For more info see http://info.webcrawler.com/mak/projects/robots/robots.html