cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Suggesting CURLOPT_PATH_AS_IS

From: Dan Fandrich <dan_at_coneharvesters.com>
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.
>
> CURLOPT_PATH_AS_IS: added
>
> --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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-23