cURL / Mailing Lists / curl-library / Single Mail

curl-library

How do to a post

From: Bescon, Guenole <Guenole.Bescon_at_compaq.com>
Date: Wed, 7 Mar 2001 17:50:55 +0100

Hello,

I would like to do a post request

What I've already done is:

curl_easy_setopt(mySession, CURLOPT_POST, 1);
curl_easy_setopt(mySession, CURLOPT_NOPROGRESS, 1);
// myURL is a char * that looks like : http://myHost:myPort/myFile
curl_easy_setopt(mySession, CURLOPT_URL, myURL);
// myPostedData is a char * that looks like:
attrname1=attrvalue1&attrname2=attrvalue2&attrname3=attrvalue3....
curl_easy_setopt(mySession, CURLOPT_POSTFIELDS, myPostedData);

Is it the good way to do a HTTP post using libcurl ?

I saw the curl_formparse method. Is it another way to do HTTP post using
this method ?

Thanks

Gwen

_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-03-07