cURL / Mailing Lists / curl-library / Single Mail


RE: CURL Post Form data

From: <>
Date: Fri, 19 Dec 2008 17:13:54 +0530

Thank's for your support Dan..
I am able to post the form to the URL now, the field value which was
incrementing was the culprit and at run time we captured field value and
posted it along with the form-data. Now the problem is like..
These are the steps we have to perform for sending request form the URL.
1) Get the initial page.
2) Upload the file using browse option. It will be post to URL
3) click on send. It will be second post to URL.

The problem is when I upload the file a form-data will be posted to URL
and also it will update the field name values
(this is happening perfectly I can see the field values assigned to the
filed names of the form after post is done to the URL).
These field values will be sent as request when I click on the send
button, which is again a post of form data with previosly updated
In this case the form data which will be posted have filename as null
and rest of the field names will be the one which were updated while
uploading the file. Here our post is failing and server seems to have no
effect of the post.
Can you help me in this regard ?
And one more question is
Suppose I did a post to the Url, it updated the field values.
During my second post to this URL will these field values be there for
the second post or we have to provide these values again in the form


-----Original Message-----
[] On Behalf Of Dan Fandrich
Sent: Wednesday, December 17, 2008 11:00 AM
Subject: Re: CURL Post Form data

On Wed, Dec 17, 2008 at 10:31:29AM +0530,
> Yes, the field that changes, is submitted evey time. Every time we
> login to the URL, intial value of this field will be some non
> predictable value. For every we docurl_easy_perfom(), it will get
> I tried with capturing the previous value and submiting this field in
> the form after incrementing it. But no improvement shown.
> Can we do anything for this issue ?

You'll have to reverse engineer the Javascript yourself to find out how
that field is calculated and then do the same thing in your app.

>>> Dan

--              The web change of address
          Let webmasters know that your web site has moved
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.
Received on 2008-12-19