Hi

If you are using cURL for network connection then following is sample with
which you can change user agent,

// spoofing FireFox 2.0
$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";

$ch = curl_init();

// set user agent
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
// set the rest of your cURL options here

You can have your own request header manager which sets various options in
HTTP Header.

Thanks & Regards
Nilesh



On Mon, Sep 19, 2011 at 7:57 PM, Luka Napotnik <[email protected]>wrote:

> Hello.
>
> Is it possible to change the user agent in the HTTP headers (preferably
> using Gtk+ API)?
>
> Greets,
> Luka
>
>
> _______________________________________________
> webkit-help mailing list
> [email protected]
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to