cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Roth, Kevin P. <kproth_at_mapllc.com>
Date: Mon, 6 Jun 2005 17:34:29 -0400

> I suppose it would make even more sense if it was made an option that
converts
> everything non-URL into its %HH-coded version and not only space. Like

> --url-sanitise or something.

If anyone attempts such a patch, make sure "?", "&", and "=" are NOT
%HH-coded, as that would cause problems for someone using a URL with
embedded form parameters. And also don't encode "/"...

Quite a while back I had suggested adding a similar option to sanitize
the contents of form parameters.
(http://curl.haxx.se/mail/archive-2003-11/0091.html). I've never gotten
around to it, but I still think it would be a nice-to-have. Maybe
whoever takes on this --url-sanitize suggestion could do both at once?

- Kevin
Received on 2005-06-06