Veloby has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to automate form submission. I know how to write a post request with name=>value pairs. This web site has got me stumped.

HTTPFox shows the Form I am trying to automate submitting a name without a value: {zip: '92869', miles: 50, dateRangeFrom: '08/04/2013', dateRangeTo: '09/01/2013'}

What the heck is going on here? Is HTTPFox misreporting the post data? Is the Form encapsulating all of the data in the Name field?

Replies are listed 'Best First'.
Re: Weird Post Data
by Veloby (Initiate) on Aug 05, 2013 at 02:41 UTC

    Answered my own question. It is 'Content-Type' => 'application/json' and no more server errors.