cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: @ sign in request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Dec 2006 23:04:44 +0100 (CET)

On Fri, 22 Dec 2006, Dan Fandrich wrote:

>> "http://www.url.com?email=mail@mail.com"
>
> It looks like libcurl is interpreting this as a request to log in to host
> mail.com using a user of "www.url.com?email=mail".

It does indeed. libcurl does not consider that to be a legal URL.

Interestingly, neither does Firefox it seems as it silently changes
"host.com?moo" to "host.com/?moo" when entered in the URL field.

> Based on the ABNF in RFC3986, it looks like libcurl is incorrectly
> interpreting the URL in this case.

Yes, it seems it can be interpreted like that... RFC1738 certainly does not,
so this must've changed over time. A reason to consider fixing libcurl in this
aspect I guess.

> I'll bet it would work if you changed your URL to
> "http://www.url.com/?email=mail@mail.com".

That should most definately work!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-12-22