cURL / Mailing Lists / curl-library / Single Mail

curl-library

Help :Form-data post using curl_form_add

From: <rakesh.sharma2_at_wipro.com>
Date: Wed, 10 Dec 2008 12:27:04 +0530

Hi,
        If we do not want to browse for the file on URL and want to set
the values for fields manually.
The filename is "" empty and the rest of the fields will have values as
set by the user.
As we can see from the Live HTTP header Below.
But when I am setting these values by curl_form_add( ) and doing
HTTP_POST nothing is happening on URL site.
Also name field is like "name:_id11" and "name:InputText3"
I am totally blocked in this situation. Please help in this regard and
suggest how this form can be posted
 
 
Live HTTP header output :
 
    POST /something HTTP/1.1
Host: something.net
/******header information***/
Content-Type: multipart/form-data;
boundary=---------------------------186362235524767
Content-Length: 1512
-----------------------------186362235524767
Content-Disposition: form-data; name="name:_id11"; filename=""
Content-Type: application/octet-stream
-----------------------------186362235524767
Content-Disposition: form-data; name="name:InputText1"
-----------------------------186362235524767
Content-Disposition: form-data; name="name:InputText2"
0
-----------------------------186362235524767
Content-Disposition: form-data; name="name:InputText3"
something
-----------------------------186362235524767
Content-Disposition: form-data; name="name:InputText4"
something
-----------------------------186362235524767
Content-Disposition: form-data; name="name.FORM"
Form
-----------------------------186362235524767
Content-Disposition: form-data; name="name.STATE"
!452efffb // this field changes every time so I cannot form add this
field
-----------------------------186362235524767
Content-Disposition: form-data; name="source"
name:send
-----------------------------186362235524767--
 
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-10