cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Help with Encoding?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 12 Oct 2004 09:04:57 +0200 (CEST)

On Mon, 11 Oct 2004, Nick Wilson wrote:

> If I *do not* urlencode() my UA string and Referer string the page can
> be grabbed but not posted to.

That is beyond me. Why would the server do that no matter what crap you pass
on?

> However, when *i do* urlencode() these strings i get a garbled UA/REFERER in
> the log files.

Yes, I bet they are URL encoded and they are not supposed to be that.

> How should I handle this?

Fix the server end to not depend on what the request has in its user-agent and
referred fields.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-12