How do you upload a file using Curl and HTTP using C++ on Linux?
I want to upload an xml file, using HTTP and Curl and C++. I am using libcurl on linux. I have no trouble downloading using curl, but uploading always gives me a problem. I get a segmentation fault whenever I call curl_easy_perform. Can somebody please post some sample code on how to upload a file to an http server. Thanks!!