Re: Encoding Question [NOT RESOVED]

From: Date: Mon, 11 Oct 2004 16:52:09 +0000
Subject: Re: Encoding Question [NOT RESOVED]
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-199204@lists.php.net to get a copy of this message
* 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

« previous php.general (#199204) next »