cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: reg:error when executing curl_easy_escape

From: Michael Wood <esiotrot_at_gmail.com>
Date: Mon, 22 Sep 2008 11:46:20 +0200

On Mon, Sep 22, 2008 at 11:32 AM, <nagarajan.sreenivasan_at_wipro.com> wrote:
> Hi
>
> We have a applicaiton for ftp which uses libcurl . the password to libcurl
> has a '/' character in it
>
> hostname <i/p asddress>
>
> the user is:testusr
> password:hello/123
>
> when i tried using curl_easy_escape function as below
>
> we are getting the below error
> ++++++++++++++++++++++++++++++++++++++++++++++++
>
> the value of REMOTE_URL2
> ftp%3A%2F%2Ftestusr%3Ahello%2F123%4010%2E125%2E103%2E88%2F

Do not escape the whole URL. Only the parts that need to be escaped.
(i.e. the password, but to be safe you should escape the username
too.)

-- 
Michael Wood <esiotrot_at_gmail.com>
Received on 2008-09-22