in reply to Re^4: failure: 400
in thread failure: 400

same error

No, the same error would be "failure: 400" as mentioned in the title. Now you've reported "failure: 500". Different error.

Argument "Key" isn't numeric in subtraction (-) at test.pl line 10.

You haven't quoted your key names in the $headers hashref.

Replies are listed 'Best First'.
Re^6: failure: 400
by bigup401 (Pilgrim) on Jan 05, 2019 at 18:39 UTC

    thanks hippo. for correction. i have added quotes in my key names

    and this error seems to be fixed. Argument "Key" isn't numeric in subtraction (-) at test.pl line 10.

    now still only getting 500