Re: Get the User-Agent string?
Andrey Kuznetsov <[email protected]>
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
You are unclear about what you mean, sending HTTP GET to oneself, what does that mean? If you want to send the useragent of the browser that is running the script the use $_SERVER['HTTP_USER_AGENT'] value. On Thu, Nov 11, 2010 at 11:54 AM, Tom Worster <[email protected]> wrote: > We can set the User-Agent string that cURL will use with > > curl_setopt($handle, CURLOPT_USERAGENT, 'Something'); > > But is there a way to get this this string value without sending an HTTP > GET to oneself? > > Tom > > > _______________________________________________ > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php > -- Andrey _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php