cURL / Mailing Lists / curl-library / Single Mail

curl-library

File upload problem libcurl

From: <rakesh.sharma2_at_wipro.com>
Date: Thu, 11 Dec 2008 19:26:14 +0530

Hi,
    I am facing File upload problem using curl_formadd( ).
When I am posting this form-data to the URL. It seems the server is not
receiving the file. I am trying like:
curl_formadd(&formpost,&lastptr,

CURLFORM_COPYNAME, "name:_id11",

CURLFORM_FILE,"Inputs.txt",

CURLFORM_FILENAME,"Inputs.txt",

CURLFORM_CONTENTTYPE ,"text/plain",

CURLFORM_END);

 
My Live HTTP Header output is :
 
Content-Disposition: form-data; name="name:_id11"; filename="Inputs.txt"
Content-Type: text/plain
 
act=0
cid=HO
Id=176
vi=2H
Count=1
mod=7879
-----------------------------215202979014924
 
Am i doing any mistake ? Please correct me and Please suggest the
correct way to add this form data.
 
Thank's
Rakesh Sharma

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Received on 2008-12-11