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
It doesn't seem possible to send both Accept: application/json and Content-Type: application/json using LibCurl with version 7.82.0 of the library. This may be an issue with libcurl, not sure. Here are a couple of the things I've tried:
Not sure if there is some other order of calling these methods that will work -- as far as I can tell, it's impossible to set both the Accept and the Content-Type header to application/json for a POST request.
Brian
The text was updated successfully, but these errors were encountered:
Hi Curt,
It doesn't seem possible to send both
Accept: application/json
andContent-Type: application/json
using LibCurl with version 7.82.0 of the library. This may be an issue with libcurl, not sure. Here are a couple of the things I've tried:For the last one -- changing the order of calling
set-header
seems to make a difference:Not sure if there is some other order of calling these methods that will work -- as far as I can tell, it's impossible to set both the
Accept
and theContent-Type
header toapplication/json
for a POST request.Brian
The text was updated successfully, but these errors were encountered: