curl-library
help required for file transfer over http in Linux
Date: Fri, 19 Jan 2007 10:10:38 +0530
Hi,
Thanks for your help. I was able to compile httpput.c successfully today
and I was able to send the file to the server.
I wanted to port the software written for windows to Linux. I have few
questions.
Is there any equivalent in cURL library for the following API's provided
by windows? If it is not there can you please give me some tips to do
the same thing in Linux with cURL library?
The details for these api's are given in
http://msdn2.microsoft.com/en-us/default.aspx
WinHttpAddRequestHeaders
WinHttpOpenRequest
WinHttpReceiveResponse
WinHttpQueryHeaders
WinHttpQueryAuthSchemes
WinHttpSetCredentials
WinHttpQueryDataAvailable
WinHttpReadData
WinHttpSendRequest
WinHttpWriteData
Regards,
Sandeep Gupta
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Wednesday, January 17, 2007 4:43 PM
To: Gupta, Sandeep K
Cc: libcurl Mailing list
Subject: Re: FW: Urgent help required for file transfer over http in
Linux
On Wed, 17 Jan 2007, Gupta, Sandeep K wrote:
If it really is that urgent, then I suggest you consider paying someone
to do
the job.
> Will this setup be ok to compile httpput.c on Linux? If not please let
me
> know the how to do it.
Yes it will. httpput.c should work with any moderately recent libcurl
installation.
> How to write the make file to link to this library for this
application can
> anybody send me the make file for this
You write a makefile that compiles httpput.c to an object file, and then
links
that with libcurl and its sub-dependencies (possibly using curl-config)
to an
executable.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-01-19