cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Parsing a username without a password in a URL

From: Frank Goodman <krampus_at_gmail.com>
Date: Tue, 24 Oct 2006 12:32:10 -0400

Actually, the problem isn't curl's fault; curl handles the case correctly.
The problem I was seeing was my own.

Thanks,
-k

On 10/24/06, m. allan noah <man_at_tfhs.net> wrote:
>
> On Tue, 24 Oct 2006, Frank Goodman wrote:
>
> > Greetings,
> >
> > I'm wondering if it's legal to have a username without a password in a
> URL.
> > For example, something like http://g@a.com/e/f/g?h=k
>
> have you tried http://g:@a.com/ ?
>
> allan
>
> >
> > In this case, curl will decompose the URL in the following manner:
> >
> > username: g
> > password: a
> > host: a.com
> >
> > which is incorrect if the URL is valid.
> >
> > Thanks,
> > -k
> >
>
Received on 2006-10-24