cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl.exe command in libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 Sep 2003 08:53:44 +0200 (CEST)

On Mon, 1 Sep 2003, Adrian Keller wrote:

> Using curl-command-prompt utility I can upload a page with the following
> command
>
> curl -Fdata=@Readme.txt -Fmode=asynchron -Fsigntype=encapsulated -u
> username:"pass!word" -o Readme.txt.sign
> https://www.destinationserver.com/cgi-sbin/upload
>
> As result I get a signed file named readme.txt.sign (the destinationserver
> holds a service where documents are signed)
>
> Now, how do I implement the same using libcurl? I guess I might use the
> curl-fromadd() Method

Yes, curl_formadd() is the key.

> Can someone help me with this?

Here's an example: http://curl.haxx.se/lxr/source/docs/examples/postit2.c

Here's the man page: http://curl.haxx.se/libcurl/c/curl_formadd.html

Please read these and ask more specific questions on what details that are
still unclear.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-02