cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem in posting filename=""

From: <rakesh.sharma2_at_wipro.com>
Date: Thu, 11 Dec 2008 18:30:12 +0530

Hi,
     My problem is that I have to post the Form-data as exactly same as
i got from Live HTTP Header output.
    This is Live HTTP header output:
 
        Content-Disposition: form-data; name="name:_id11"; filename=""
        Content-Type: application/octet-stream
 
 
-----------------------------1496212324596

    Can anyone sugget me how to do this with curl_formadd( )
 
I am trying something like :
curl_formadd(&formpost,&lastptr,

CURLFORM_COPYNAME, "name:_id11",CURLFORM_COPYCONTENTS,"",

CURLFORM_FILENAME,"filename",CURLFORM_COPYCONTENTS,"",

CURLFORM_END);

But not able to form the exact form data.

Can someone please tell me how to solve this problem and how can I post
Live HTTP header output: Form-data using curl_formadd( )

Thank's in Advance

Rakesh

 

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