cURL / Mailing Lists / curl-library / Single Mail



From: Dan Fandrich <>
Date: Mon, 23 Mar 2015 22:56:39 +0100

On Mon, Mar 23, 2015 at 01:01:25PM +0100, Daniel Stenberg wrote:
> As has been requested a few times, I'm hereby offering an option that allows
> an application to switch off libcurl's "dedotdotify" function. That's the
> function that squashes parts of the path that contain "/../ or "/./".
> Normally a path in a URL that says "/moo/../hello" will be sent over the
> wire as just "/hello". (This behavior was added to libcurl in 7.32.0) This
> handling has been unconditional so far.
> Attached is a (gzipped to make the test cases survive better) patch. I'll
> welcome all and any comments, high or low.
> --path-as-is is the command line option

I somehow recall some other URL mangling that curl did at some point, like
replacing spaces with %20 or truncating URLs with spaces or something. Is there
any other URL mangling/unmangling that could/should be stopped with this
option as well?

>>> Dan
List admin:
Received on 2015-03-23