Msg#: 4202533 posted 2:58 am on Sep 16, 2010 (gmt 0)
When I read an internet page with the file() command, the http_user_agent is reported as nothing. I want to put something there for the user_agent. I found an example here under php/3388602.htm but I can't get it to work. Not sure what should go in the Host: parameter I'm new to this website, and having a bit of difficulty figuring it out.
Msg#: 4202533 posted 2:44 am on Sep 19, 2010 (gmt 0)
It's has been several days and I haven't gotten a reply. The reason I need this is I offer a service which entails looking at things on the user site, and I need a way for them to let me through their bad bot function. Does anyone know how to make this work?
Msg#: 4202533 posted 8:17 am on Sep 19, 2010 (gmt 0)
I did a quick scan of curl, but I don't know it at all. Trying to relate this example to what I saw there has me totally confused.
The curl_exec does the read of the website? A user agent is not normally a url, could it be something like simply "MyAgent"? What is a referer? What is $fp pointing to? (the curl example at php.net for reading a website uses a fopen(), do I need something like that to get the $fp?)