cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with user name which contains an @ character

From: Richard Atterer <richard_at_2007.atterer.net>
Date: Fri, 10 Aug 2007 15:05:25 +0200

On Fri, Aug 10, 2007 at 02:24:29PM +0200, Abel Alonso wrote:
> Could be the reason because I cannot connect to that server?

Yes, I'd guess so (but haven't looked at the curl code).

> If the answer is possitive, then How can I send the user and password
> separately from the url?

Please look at the curl documentation - have you tried CURLOPT_USERPWD?
<http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTUSERPWD>
Hmm - hopefully your user name doesn't contain ':' as well, or you might be
in trouble. :)

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key: 888354F7
  | \/¯|  http://atterer.net  |  08A9 7B7D 3D13 3EF2 3D25  D157 79E6 F6DC 8883 54F7
  ¯ '` ¯
Received on 2007-08-10