php cURL not sending form fields with empty values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lipong
Forum Newbie
Posts: 4
Joined: Tue Nov 11, 2008 5:44 am

php cURL not sending form fields with empty values

Post by lipong »

Thanks for the reply, I check both with cURL and in the browser and the problem is that php is not sending the fields for which I have set a empty value such as:

Hi

My problem is the following, I`m posting info to a remote form on a website but there are some hidden fields that I have to submit that have empty values such as:

$data_array['_D:/bcp/cidadebcp/33/SCHBean_diaNascimento']=" ";

but the php is not sending those.
When I use the command line version of cURL then everything works fine and empty fields are sent.
Any ideas why this might be happening.

Thanks.
Post Reply