![]() |
|
|
+ Search |
![]()
|
Aug 15th, 1999 08:55
Nathan Wallace, se@lakenet.no
If you open a socket to retrive the pages, you just output:
"User-Agent: whatever\n"
as one of the request headers.
I would use something like
"User-Agent: bot_name/bot_version (bot_purpose; your@email)\n"
(and try to make the robot honor "robots.txt" and other nice things ;)
if you use fopen(" http://... the User-Agent is set somewhere near line
588 in fopen-wrappers.c...