cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: Bug#311112: curl: Escape <space> in HTTP requests

From: Richard Atterer <richard_at_2005.atterer.net>
Date: Sat, 28 May 2005 21:24:55 +0200

On Sat, May 28, 2005 at 08:08:35PM +0200, Domenico Andreoli wrote:
> here is another bug.

This is not a bug IMHO, it's a feature request.

> curl --trace-ascii - 'http://downhill.aus.cc/testingcurl/with space'

This is an invalid URL, so you cannot really expect any particular
behaviour from curl. According to RFC 1738, "All unsafe characters must
always be encoded within a URL", this includes spaces. (But automatic
escaping would be a nice feature.)

Just my 2¢(EU),

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key:
  | \/¯|  http://atterer.net  |  0x888354F7
  ¯ '` ¯
Received on 2005-05-30