LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


View Poll Results: which library is better for https communication in C language?
openssl 0 0%
curl 1 100.00%
Voters: 1. You may not vote on this poll

Reply
  Search this Thread
Old 05-06-2011, 08:14 AM   #1
thirumalesh
Member
 
Registered: Sep 2007
Posts: 54

Rep: Reputation: 15
openssl vs curl


Hi,

I need to build an https client in 'C' language on linux platfrom
and my app is a multithreaded one...in each thread it need to send a seperate https request to the same server..and receive response....

I used openssl library for this, i am able to send request to server. but when i am
trying to read the socket (using SSL_Read) it's closing connection(returning 0 with error code 29).

Anybody has any idea?????

and one more question is can i use libcurl for this???

Thanks in Advance...

Thiru
 
Old 05-06-2011, 08:24 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Um. libcurl uses openssl for https.

Last edited by zordrak; 05-06-2011 at 08:24 AM. Reason: link
 
1 members found this post helpful.
Old 05-06-2011, 10:08 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
I am failing to see how this is a poll of like things?? Some functionality maybe but definitely not both designed for the same task.
 
0 members found this post helpful.
Old 05-07-2011, 11:00 PM   #4
thirumalesh
Member
 
Registered: Sep 2007
Posts: 54

Original Poster
Rep: Reputation: 15
thanks for the responses....

but does anybody have an idea for the below .....

"I used openssl library for this, i am able to send http request to server. but when i am
trying to read the socket (using SSL_Read) it's closing connection(returning 0 with error code 29)."

Thanks.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Curl HTTPS OpenSSL Certificate issue Manjunath1847 Linux - General 1 08-09-2010 10:13 PM
cUrl + Openssl Padawan.AVT Linux - Software 2 07-16-2009 01:36 AM
cURL: Server has many IPs, how would I make a cURL script use those IPs to send data? guest Programming 0 04-11-2009 11:42 AM
Compile Curl module with openssl spazmatic Linux - Newbie 0 04-06-2009 11:45 AM
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 01:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration