[Ilugc] Need Linux Equavalent to windows winHttp

  • From: urwithsudheer@xxxxxxxxx (Anumolu Sudheer)
  • Date: Tue Mar 25 17:36:16 2008

 As someone said curl can do this.

 a) curl
 http://curl.haxx.se

 wget can as well.

 b) wget
 www.gnu.org/software/wget/

 And so can lftp.

 c) lftp
 http://lftp.yar.ru/

 I have had to do this long long ago and I found curl to be quite useful.
 You can even store and send the auth cookie in the header thereby
 simulating a user's logged in session.

 Look for curl's '-H', '-A' and '-b' switches.


 > WinHTTP supports desktop client applications, Windows services, and
 > Windows server-based applications.
 >

 What are these?


 > I hope Apache is a web server application and not suitable for my 
requirement.
 >

 Correct.


 > Please let me know if any more ideas.
 >

 curl is very powerful and you can write any application that uses HTTP,
 FTP and several other protocols.


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.

Thanks
Sudheer

Other related posts: