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

From: Date: Tue, 03 Oct 2006 18:24:30 +0000
Subject: RE: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242565@lists.php.net to get a copy of this message
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@gmail.com] Sent: Tuesday, October 03, 2006 2:05 PM To: replies-lists-php@listmail.innovate.net; php-general@lists.php.net Subject: Re: [PHP] 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@listmail.innovate.net < replies-lists-php@listmail.innovate.net> 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@gmail.com> > > To: php-general@lists.php.net > > Subject: [PHP] 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 ---------- > >

« previous php.general (#242565) next »