cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: reg:error when executing curl_easy_escape

From: <nagarajan.sreenivasan_at_wipro.com>
Date: Mon, 22 Sep 2008 16:06:23 +0530

Thanks a lot that worked...

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Michael Wood
Sent: Monday, September 22, 2008 3:16 PM
To: libcurl development
Subject: Re: reg:error when executing curl_easy_escape

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>
Please do not print this email unless it is absolutely necessary. 
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 
www.wipro.com
Received on 2008-09-22