On Mon, 5 Mar 2012, ankit Tripathi wrote:

I am trying to establish HTTPS connection with some url by using libcurl. For sending and receiving message i am using curl_easy_send and curl_easy _recv

I strongly suggest you reconsider that choice. Use the "proper" API for any protocol that libcurl supports. curl_easy_send and curl_easy_recv are meant to be used only in the rare and special situations when you need to implement another protocol (and even then you should reconsider why using libcurl at all if you don't need libcurl's features that much).

.i am to able to send the msg . after waiting on the wait_on_socket function for receiving the response from PEER it is throwing the error 1) " Failed to get recent socket "

That means the socket was closed already and couldn't be provide to the application by libcurl. Using VERBOSE could possibly tell some more.

2)"Unsupported protocol " .while waiting on socket for the receiving first
it wait around 15 to 20 sec and then it trows the error.

What error code do you get from curl_easy_recv() ?

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to