Re: URL with @ in passwords
Date: Thu, 29 Jul 2004 18:31:10 +0200
Gisle Vanem wrote:
> "Daniel Stenberg" <daniel-curl_at_haxx.se> wrote:
>>>Could a url like this be legalised?
>>>>curl -v ftp://ftp:passwd-with-@-email@example.com/
>>It could possibly be dealt with, if we made the parser scan for the _last_
>>@-letter to terminate the password instead of having the _first_ @-letter
>>found do it.
> You mean the last '@' before the file part? So an URL
> would work.
And how would you want to identify the file part ?
Don't forget something like
I think you have opened a can of worms...
It seems the only way to handle this is
to remove user ID and pass phrase from the URI.
With user ID and pass phrase given seperately:
curl -v -u user:passwd-with-_at_./-in-it fttp://host.fo/file-with-_at_-in-it
-- Goetz Babin-Ebell, software designer, TC TrustCenter AG, Sonninstr. 24-28, 20097 Hamburg, Germany Office: +49-(0)40 80 80 26 -0, Fax: +49-(0)40 80 80 26 -126 www.trustcenter.de www.betrusted.com
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature