cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Parsing a username without a password in a URL

From: m. allan noah <man_at_tfhs.net>
Date: Tue, 24 Oct 2006 12:08:52 -0400 (EDT)

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