RE: changing the global variables (_SERVER[HTTP_USER_AGENT])

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can use cURL to send a request and you can set the user agent to
whatever you want.

http://www.php.net/curl

See function: "curl_setopt" and option: "CURLOPT_USERAGENT"


-Brad

-----Original Message-----
From: Balaji A [mailto:reachchiru@xxxxxxxxx] 
Sent: Tuesday, October 03, 2006 2:05 PM
To: replies-lists-php@xxxxxxxxxxxxxxxxxxxxx; php-general@xxxxxxxxxxxxx
Subject: Re:  changing the global variables (_SERVER[HTTP_USER_AGENT])

Thanks for the reply rick.

I actually want to change the user agent header in the request sent by the
client.

I want to send a request to the server with different user agent header.

Is it possible to change?

Thanks
Balaji


On 10/3/06, replies-lists-php@xxxxxxxxxxxxxxxxxxxxx <
replies-lists-php@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> the "HTTP_USER_AGENT" global returns the value presented by the client.
> i.e., this isn't a server-side value, hence nothing to be changed on
> the server side.
>
> on the client-side, various clients let the user set the value returned
> by their client (others, of course, don't let the user near that).
>
>   - Rick
>
>
> ------------ Original Message ------------
> > Date: Tuesday, October 03, 2006 10:43:44 AM -0700
> > From: Balaji A <reachchiru@xxxxxxxxx>
> > To: php-general@xxxxxxxxxxxxx
> > Subject:  changing the global variables
> (_SERVER[HTTP_USER_AGENT])
> >
> > Hi,
> > in php.ini I have changed the register_global to "On".
> >
> > Is it possible to change the global variable _SERVER[HTTP_USER_AGENT]?
> >
> > Thanks in advance..
> >
> >
> > Thanks
> > Balaji
>
> ---------- End Original Message ----------
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux