Hello Friends, I would like to know if its possible to change the UserAgent with the fopen() function. When I am using it to fetch URL, no UserAgent is sent to the remote server. Curse is not an alternative for me. Regards Thibaut
Use curl, with CURLOPT_USERAGENT: Example curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)'); PHP: