Bugs item #1466617, was opened at 2006-04-08 00:10
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1466617&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: libcurl
>Group: new feature request
Status: Open
>Resolution: Wont Fix
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Daniel Stenberg (bagder)
Summary: file:// and RFC1738
Initial Comment:
cURL supports file:// but doesn't conform to RFC 1738.
According to RFC 1738 file://remotehost/path/to/file
is a (informal) specification where a file can be
found in the filesystem on "remotehost".
Please see the following log of some curl commands run
on Windows (katmai IS localhost here):
R:\>dir \\katmai\c$\boot.ini
Datenträger in Laufwerk \\katmai\c$: hat keine
Bezeichnung.
Datenträgernummer: FCBA-B684
Verzeichnis von \\katmai\c$
07.03.2006 05:11 1.099
BOOT.INI
1 Datei(en) 1.099 Bytes
0 Verzeichnis(se), 3.170.615.296
Bytes frei
R:\>curl -# -v -I file://katmai/c$/boot.ini
* Couldn't open file /c$/boot.ini
curl: (37) Couldn't open file /c$/boot.ini
R:\>curl -# -v -I file://localhost/c$/boot.ini
* Couldn't open file /c$/boot.ini
curl: (37) Couldn't open file /c$/boot.ini
R:\>curl -# -v -I file://127.0.0.1/c$/boot.ini
* Couldn't open file /c$/boot.ini
curl: (37) Couldn't open file /c$/boot.ini
R:\>curl -# -v -I file:///c$/boot.ini
* Couldn't open file /c$/boot.ini
curl: (37) Couldn't open file /c$/boot.ini
R:\>curl -# -v -O file://\\katmai\c$\boot.ini
curl: Remote file name has no length!
curl: try 'curl --help' or 'curl --manual' for more
information
R:\>curl -# -v -I -O file://\\katmai\c$\boot.ini
curl: Remote file name has no length!
curl: try 'curl --help' or 'curl --manual' for more
information
R:\>curl -# -v -I file://\\katmai\c$\boot.ini
Content-Length: 1099
Accept-ranges: bytes
Last-Modified: Tue, 07 Mar 2006 04:11:13 GMT
R:\>curl -# -v -I -O file://C:\boot.ini
curl: Remote file name has no length!
curl: try 'curl --help' or 'curl --manual' for more
information
R:\>curl -# -v -I file://C:\boot.ini
Content-Length: 1099
Accept-ranges: bytes
Last-Modified: Tue, 07 Mar 2006 04:11:13 GMT
R:\>curl -# -v -I file://katmai/c$/boot.ini
* Couldn't open file /c$/boot.ini
curl: (37) Couldn't open file /c$/boot.ini
Now against a remote host (which is ignored with the
valid URL):
R:\>dir \\marsupilami\e$\boot.ini
Datenträger in Laufwerk \\marsupilami\e$: ist
FESTPLATTE
Datenträgernummer: 6CA2-A31C
Verzeichnis von \\marsupilami\e$
17.07.2004 11:27 1.159
BOOT.INI
1 Datei(en) 1.159 Bytes
0 Verzeichnis(se), 607.916.032
Bytes frei
R:\>curl -# -v -I file://\\marsupilami\e$\boot.ini
Content-Length: 1159
Accept-ranges: bytes
Last-Modified: Sat, 17 Jul 2004 09:27:59 GMT
R:\>curl -# -v -I file://marsupilami/e$/boot.ini
* Couldn't open file /e$/boot.ini
curl: (37) Couldn't open file /e$/boot.ini
\ ain't a valid char for URLs.
file:/// means file://localhost/, so
file://C:\something is invalid.
Please check RFC 1739 and 2151 too!
Stefan Kanthak
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Date: 2006-04-08 00:17
Message:
Logged In: YES
user_id=1110
This is by design and you will also note that the RFCs do
not specify _how_ that getting of a file from another system
is supposed to be done.
If you feel like extending curl to do this, I'm sure lots of
users will enjoy it as I certainly will. I personally have
no plans to implement anything like this for the forseeable
future.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1466617&group_id=976
Received on 2006-04-08