curl-and-php
Re: Get the User-Agent string?
From: Andrey Kuznetsov <kandrey89_at_gmail.com>
Date: Thu, 11 Nov 2010 12:02:48 -0800
Date: Thu, 11 Nov 2010 12:02:48 -0800
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 <fsb_at_thefsb.org> 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-phpReceived on 2010-11-11