Skip to content

Conversation

nguyentamgm
Copy link
Contributor

Problem:
When sending a delete request to Apple News API, it always returns "invalid signature" error
It's because Apple check if CURLOPT_POSTFIELDS option exists, then they will detect that request as a POST, and validate a posting action instead of deleting action.

Solution:
Only set CURLOPT_POSTFIELDS options if post data is not empty for DELETE method

zachborboa added a commit to zachborboa/php-curl-class that referenced this pull request Nov 30, 2018
@zachborboa zachborboa merged commit 067d73e into php-curl-class:master Nov 30, 2018
@zachborboa
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants