Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Always add CURLOPT_POSTFIELDS for a POST request#37

Open
danelowe wants to merge 1 commit into
gocardless:masterfrom
danelowe:master
Open

Always add CURLOPT_POSTFIELDS for a POST request#37
danelowe wants to merge 1 commit into
gocardless:masterfrom
danelowe:master

Conversation

@danelowe
Copy link
Copy Markdown

@danelowe danelowe commented May 8, 2014

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.

PHP seemed to be adding header 

``Content-Length: -1

If a POST request has no CURLOPT_POSTFIELDS defined, causing a 400 Bad Request from GoCardless.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant