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
Hi @DanielSundberg,
Thanks for reporting this. PainlessHttp has not been updated for some time, one reason is that it's based on HttpRequester, which is discontinued in dotnet core.
Anyways, I believe that the problem is that you're in fact sending a POST body, the (empty) StringContent. It will eventually get serialized. You could try string.Empty or try the method PerformRaw that does not require you to specify any body.
I have the following API-method:
Then calling it with:
Result: Http status: LengthRequired (411)
In powershell it works ok:
Using Http client from System.Net.Http works ok:
The text was updated successfully, but these errors were encountered: