| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: file:// command line parsing
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Mar 2002 14:24:35 +0100 (MET)
On Tue, 5 Mar 2002, Roth, Kevin P. wrote:
> When compiling "things" under cygwin, it's possible to have an executable
Yeah, there's been nothing new in that neighbourhood recently.
> and I see the following:
The URL is wrongly formatted. The syntax should be
file://[host]/[path]
Where [host] is always ignored by curl and widely never used, so thus most
file:///[path]
Thus the above should've been
$ curl file:///c:\\temp\\test.txt
curl contains some weird code that attemps to work-around this syntax error
> It appears that somewhere inside its command line parsing, curl.exe is
Yes, normally in unix that part is taken care of by the shell.
I checked the code and I just can't understand how this happens. There's only
Also, when I try this out on unix, I get outputs like this:
$ curl "moo\\\\\\"
Which shows that after the shell has converted each pair of backslashes into
$ curl "file:///moo\\\\\\"
> Will the fix likely be a cygwin-specific patch, or can it somehow be a more
At this moment this tastes like a cygwin chew.
> If it needs to be cygwin specific, I'll make an attempt at it, if I can
Fire up gdb. Set a break-point in main(). type 'run [url]'
Does the argv[1] contain the properly looking string? If so, then the problem
Step into operate() and down a dozen lines or so until getparameter() is
On main.c:2044 starts the loop that loops through all given URLs, step with
If you get this far, I bet you have some further data we can work on... :-)
--
Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-06
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info