[Ilugc] Need Linux Equavalent to windows winHttp

  • From: arnstein87@xxxxxxxxx (Arnold Noronha)
  • Date: Tue Mar 25 17:47:35 2008

On Tue, Mar 25, 2008 at 5:36 PM, Anumolu Sudheer
<urwithsudheer@xxxxxxxxx> wrote:


 I could see that curl,wget are command line tools  that uses http, etc
  protocol.and are end user commands.

 Please let me know the if my understanding is wrong.

 The WinHTTP APIs in windows are given below.

 WinHttpOpen
 WinHttpOpen
 WinHttpConnect
 WinHttpOpenRequest
 WinHttpSendRequest
 http://msdn2.microsoft.com/en-us/library/aa384257(VS.85).aspx

 I need corresponding APIs in Linux  to develop my application.

 I have also looked into 'wget source code'  and found that the http
 requests are done with socket calls and ultimately read/write the data
 stream from/to  fd.

 Is this the  only method to work out ? if so, i have to develop my own
 APIs and then work application Or else please let me know if any APIs
 readily available.


In that case use libcurl. libcurl is the library used by curl to do
all its HTTP connections. Its pretty easy to use if you spend some
time with the documentation.

--arnold

Other related posts: