cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Cookies still not working as of 7.9.1-pre2

From: SM <nntp_at_iname.com>
Date: Tue, 09 Oct 2001 09:05:19 +0400

At 13:38 08-10-2001 +0200, Daniel Stenberg wrote:
>I can't see the bug in this. -b takes an argument, so in this case it got
>"-c" as a filename to read cookies from. The rest of the command line was
>treated as two URLs, of which the first one couldn't resolve and thus caused
>the error output.

I thought it more as a quirk than a bug. Sorry about that. I didn't
realize that the -c was being read in as an argument for -b.

>The only way I can think of we could've trapped this, would be to somehow not
>allow file names that start with a dash ('-'). I wouldn't like that.

Me neither, as the filename is valid.

>We could also require strict URL syntax, which then would've caused the
>"cookies.txt" to not pass the test, but I wouldn't want that either...

No, it is not worth doing that as the user could have a server called
cookies.txt on an internal network.

Regards,
-sm
Received on 2001-10-09