cURL / Mailing Lists / curl-library / Single Mail

curl-library

Trying to http post xml file - Memory fault(coredump)

From: Shrestha, Anupama <Anu.Shrestha_at_kaman.com>
Date: Tue, 20 Jun 2006 11:15:27 -0400

test.xml is the name of the xml document. I am trying to post and sitting in the same directory where the code is

headerlist = curl_slist_append(headerlist, "Content-Type: application/x-www-form-urlencoded");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
curl_formadd(&post, &last, CURLFORM_COPYNAME,"project",CURLFORM_FILE,"test.xml",CURLFORM_END);
curl_easy_setopt(curl, CURLOPT_POST, post);

Do I need to open and read the file?
Received on 2006-06-20