gocardless-legacy-php icon indicating copy to clipboard operation
gocardless-legacy-php copied to clipboard

Always add CURLOPT_POSTFIELDS for a POST request

Open danelowe opened this issue 10 years ago • 0 comments

PHP (5.5.8 on my machine) seemed to be adding header

Content-Length: -1

If a POST request has no CURLOPT_POSTFIELDS defined, causing a 400 Bad Request from GoCardless.

This caused retry/refund requests to always fail.

danelowe avatar May 08 '14 02:05 danelowe