cURL / Mailing Lists / curl-users / Single Mail

curl-users

Compilation and POST issue with CURL 7.21.3

From: <darshan.mody_at_wipro.com>
Date: Thu, 20 Jan 2011 11:03:19 +0530

Hi,

 

I am trying to merge my application with the libcurl. I have been using
libcurl and need to upgrade the app to the latest libcurl. I am
statically linking the app to the curl library.

 

I find an issue with the compilation of the libcurl for the ssluse.c in
the cert_stuff method line 328. I modified the same to the following

     size_t len = strlen(data->set.str[STRING_KEY_PASSWD]);

     if(len < sizeof(global_passwd))

        memcpy(global_passwd, data->set.str[STRING_KEY_PASSWD], len+1);

 

From

      size_t len = strlen(data->set.key_passwd);

      if(len < sizeof(global_passwd))

        memcpy(global_passwd, data->set.key_passwd, len+1);

 

Kindly let me know that if the above piece of code is correct or not.

 

Also I am finding issue with the post operation. I am trying to send
soap message XML data in the body. However the data is not inscribed in
the message at all. I am using option CURLOPT_POSTFIELDS. I verified at
my end whether the application is setting the data correctly or not.

 

Thanking in advance

 

Regards

Darshan

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

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-20