Re: Encoding Question [NOT RESOVED]

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

 



* and then Nick Wilson declared....
> > > that one is using rawurlencode() but it's just as bad with urlencode -
> > > How *should* I be doing this?
> > 
> > is this how you tried to do it?
> > 
> > $userAgent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
> > curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
> 
> Yep, but like this:
> 
> $userAgent = urlencode("Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
> curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);

just a *bump* if anyone thought the thread was resloved ;-)

-- 
Nick W

-- 
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