cURL / Mailing Lists / curl-library / Single Mail

curl-library

reg:error when executing curl_easy_escape

From: <nagarajan.sreenivasan_at_wipro.com>
Date: Mon, 22 Sep 2008 15:02:00 +0530

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

        * getaddrinfo(3) failed for
ftp%3A%2F%2Ftestusr%3Ahello%2F123%4010%2E125%2E103%2E88%2F:80

        * Couldn't resolve host
'ftp%3A%2F%2Ftestusr%3Ahello%2F123%4010%2E125%2E103%2E88%2F'

        * Closing connection #0

        * Couldn't resolve host name

        The errorcode is 6

++++++++++++++++++++++++++++++++++++++++++++++++
 
The problem is curl_easy_perform is not able to recgonize the hostname
because of the / in the password
 
Am I doing something wrong . I have attached the code also.(1.cc)
 
Thanks for the support
Regards
Nagarajan

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

  • application/octet-stream attachment: 1.cc
Received on 2008-09-22