You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the Stripe API with Swift and cURL I keep receiving complaints from the server along the lines of "Invalid UTF-8 characters found in POST body." On top of that, the behavior seems to be inconsistent and the request will occasionally be accepted by their server, but none of the post fields are used. I put up a repo to show the code I used and I'm wondering if I'm just using cURL/CCurl wrong or if this is a bug.
(this is a question, if someone could please add the label)
The text was updated successfully, but these errors were encountered:
I looked at your test repository and noticed that you never set the Content-Type header in your request. I don't know what is the default Content-Type for POSTs in libCurl.
I also would recommend adding the following call:
curlHelperSetOptInt(handle, CURLOPT_VERBOSE,1)
That call turns on all sorts of logging by libCurl. It may help. I don't remember if it adds logging of the body or not.
When trying to use the Stripe API with Swift and cURL I keep receiving complaints from the server along the lines of "Invalid UTF-8 characters found in POST body." On top of that, the behavior seems to be inconsistent and the request will occasionally be accepted by their server, but none of the post fields are used. I put up a repo to show the code I used and I'm wondering if I'm just using cURL/CCurl wrong or if this is a bug.
(this is a question, if someone could please add the label)
The text was updated successfully, but these errors were encountered: