curl-library
RE: how to use libcurl to post ( mac os X)
Date: Sun, 15 Jun 2003 21:19:45 -0700
> The below is helpful,if one wants to run the below curl commands in
> Mac OS X;
( curl 7.7.2)
>
> what is the easiest way to do these instructions
Form a shell srcipt like xxx.sh?
>
> 1. RE: how to use libcurl to post (Jeff Pohlmeyer)
>
> I want to write a program to upload something using HTTP POST, but
> failed.
>
> here is the source code of html file:
> [snip]
>
> The curl_formadd() is for use with "multipart/formdata" (rfc1867)
> posts.
> Looking at your HTML form, it looks like you want to use the standard
> "application/x-www-form-urlencoded" POST instead. To do this, you don't
> need curl_formadd() at all, instead you want to use the CURLOPT_POST
> and CURLOPT_POSTFIELDS options to curl_easy_set_opt().
>
> Something like this:
>
> curl_easy_set_opt(curl, CURLOPT_POST, 1);
> curl_easy_set_opt(curl, CURLOPT_POSTFIELDS, "vname=linux&kind=mu");
>
>
Is Mac OS X the most widely running *NIX yet?
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-16