cURL / Mailing Lists / curl-library / Single Mail


Re: [RFC PATCH] Support for overriding open function for file: URLs

From: Dan Fandrich <>
Date: Mon, 12 Dec 2011 11:38:57 -0800

On Mon, Dec 12, 2011 at 05:05:06PM +0000, Mike Crowe wrote:
> I'd like to be able to change the actual path opened when libcurl
> handles file:/// URLs. It seems that the easiest way to do this would
> be to support an alternative function that is called by file_connect
> when it wants to open a file. This patch does this and if the general
> approach is acceptable I'll knock it into better shape. But, before
> that I have a few questions:

This seems to be trivial to implement by rewriting the URL in the
application before setting CURLOPT_URL. Is there any reason that
approach can't be used instead?

>>> Dan
List admin:
Received on 2011-12-12