IT Community - Software Programming, Web Development and Technical Support

Need Linux Equavalent to windows winHttp

This is a discussion on Need Linux Equavalent to windows winHttp within the Operating Systems forums, part of the Computer Hardware/Software and Networking category; Hello all I need to work with http manager in linux which is to be equavalent to WinHTTP in windows. ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Computer Hardware/Software and Networking > Operating Systems

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-02-2008, 01:43 AM
arjkhanna arjkhanna is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 1,102
arjkhanna is on a distinguished road
Default Need Linux Equavalent to windows winHttp

Hello all

I need to work with http manager in linux which is to be equavalent to
WinHTTP in windows.

I am looking for the library that provides the APIs for http manager in linux

Please let me know if any such http library available and let me know
if any more information required.

Thanks
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-02-2008, 01:45 AM
JSureshkumar JSureshkumar is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Location: in someone's heart
Posts: 139
JSureshkumar is on a distinguished road
Send a message via Skype™ to JSureshkumar
Default Re: Need Linux Equavalent to windows winHttp

if you tell us what WinHTTP does, we can tell you how to do it in Linux.

__________________
J Suresh Kumar
Google Hacks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-02-2008, 01:50 AM
satheesh satheesh is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 95
satheesh is on a distinguished road
Default Re: Need Linux Equavalent to windows winHttp

I think, suresh is talking about
About WinHTTP (Windows)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-02-2008, 02:10 AM
arjkhanna arjkhanna is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 1,102
arjkhanna is on a distinguished road
Default Re: Need Linux Equavalent to windows winHttp

Quote:
Originally Posted by JSureshkumar View Post
if you tell us what WinHTTP does, we can tell you how to do it in Linux.

WinHTTP what i meant is given in
About WinHTTP (Windows)

Microsoft Windows HTTP Services (WinHTTP) provides developers with an
HTTP client application programming interface (API) to send requests through the HTTP protocol to other HTTP servers.

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

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

Please let me know if any more ideas.
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-02-2008, 09:07 PM
bluesky bluesky is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 201
bluesky is on a distinguished road
Default Re: Need Linux Equavalent to windows winHttp

Quote:
Originally Posted by arjkhanna View Post
WinHTTP what i meant is given in
About WinHTTP (Windows)

Microsoft Windows HTTP Services (WinHTTP) provides developers with an
HTTP client application programming interface (API) to send requests through the HTTP protocol to other HTTP servers.
...
...
As someone said curl can do this.

a) curl
cURL and libcurl

wget can as well.

b) wget
GNU Wget

And so can lftp.

c) lftp
LFTP - sophisticated file transfer program

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.


Quote:
Originally Posted by arjkhanna View Post
...
...
I hope Apache is a web server application and not suitable for my requirement.
...
Correct.

Quote:
Originally Posted by arjkhanna View Post

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.

It also lends to easy scriptability.

Whereas tools like wget and lftp are geared towards end user.

Best of luck!

Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-02-2008, 09:17 PM
arjkhanna arjkhanna is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 1,102
arjkhanna is on a distinguished road
Default Re: Need Linux Equavalent to windows winHttp

Quote:
Originally Posted by bluesky View Post
As someone said curl can do this.
...
.....
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
WinHTTP Functions (Windows)

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
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-03-2008, 05:08 AM
JSureshkumar JSureshkumar is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Location: in someone's heart
Posts: 139
JSureshkumar is on a distinguished road
Send a message via Skype™ to JSureshkumar
Default Re: Need Linux Equavalent to windows winHttp

Quote:
Originally Posted by arjkhanna View Post
...
....
...
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
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.
__________________
J Suresh Kumar
Google Hacks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-03-2008, 05:15 AM
satheesh satheesh is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 95
satheesh is on a distinguished road
Default Re: Need Linux Equavalent to windows winHttp

Quote:
Originally Posted by arjkhanna View Post
.
..
...
I hope Apache is a web server application and not suitable for my requirement.
..
...
Well, I what i would like to tell you about Apache is -
Its Apache - HTTPClient for Java.
Its the WinHTTP for the Java World.
Apache has a whole bunch of software available under its umbrella and it is not restricted to Apache webserver, which is the main product of the
group.

Thank you
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get IE for linux? shaalini Operating Systems 4 03-28-2008 10:42 PM
Network Security in Windows XP Professional and Windows 2000 arjkhanna Networking & Internet Connectivity 12 02-15-2008 08:58 AM
Windows Silver Light Support Linux? prasannavigneshr Technology BUZZzzzzz 18 08-06-2007 10:14 AM
problem with migrating web server windows 2000 to windows 2003 kingmaker ASP and ASP.NET Programming 1 07-20-2007 04:39 AM
Linux anyone? drecko The Lounge 8 03-08-2007 08:00 PM


All times are GMT -7. The time now is 01:58 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0