[Ilugc] Need Linux Equavalent to windows winHttp

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Tue Mar 25 19:05:13 2008

On 17:36:06 Mar 25, Anumolu Sudheer 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.


Your understanding will improve as and when you start understanding
UNIX philosophy and how UNIX tools are built.

It is not something that can be explained.

It is something you will feel instinctively over time...a few months or
years.

It is not like Windows in which you read up some API and get some job
done.

UNIX needs a lot of investment.

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.


There would not be one to one mapping.

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.

So what?

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.


Your questions are quite vague I should admit.

We have given you the right pointers.

Now just get cranking. :)

-Girish

Other related posts: