cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with user name which contains an @ character

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Aug 2007 15:14:56 +0200 (CEST)

On Fri, 10 Aug 2007, Abel Alonso wrote:

> I have a problem when I try to connect to a Server. I think that it could be
> due to the user name contains an @ character and I make the conection by
> sending the user name and the password in the url like the following:
>
> ftp://user:pass@host
>
> Could be the reason because I cannot connect to that server?

The '@' letter is reserved in a URL so if you're using it in a user name or
password you need to enter it URL encoded: %40.

And by using -v you'll get to see the full protocol "conversation" and it'll
most likely reveal if this is the problem or not.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-08-10