curl / Mailing Lists / curl-library / Single Mail


Re: broken cURL on semicolon (of Windows drive letter) in file://<path-url>

From: Marcus Hoffmann <>
Date: Mon, 23 Jan 2017 17:53:49 +0100

On 23.01.2017 16:55, Kees Dekker wrote:
> Sorry, I don't understand. Do you mean that curl 7.52.1 should also work?
> If I understood well, I have to wait for a fix that is in 7.53.0, isn't it?
> I now got CURLE_URL_MALFORMAT when passing the following URL: "file://w:/general/lib/curl/unittest/test_xml.xml"
> This value comes from the Visual Studio debugger, and is IMO correct? As far as I know, the "file:" directive should be followed by 2 forward slashes, which is the case.

the correct value is:
"file://<hostname>/w:/general/lib/curl/unittest/test_xml.xml" where
<hostname> can either be "localhost", "" or "" (empty string).
Which then produces: "file:///w:/[...]"

But as everyone on Windows seems to use the incorrect version with just
two slashes, support for this was brought back.

So curl 7.52.1 works with the correct URL: "file:///w:/[...]" and curl
7.53 will also work with the "file://w:/[...]" version with two slashes.

Best wishes,
Received on 2017-01-23