Reputation: 33
There's a ridiculous problem.
I send a POST request to an API and it goes smoothly with programs like Postman/Bruno. But with libraries like RestSharp/Flurl/HttpClient, I was getting 400 responses.
Today, while analyzing requests with Fiddler Everywhere, I saw that this RestSharp request works fine. In other words, the C# RestSharp request goes smoothly without getting a 400 error when intercepting.
What could be the reason for this?
Upvotes: 0
Views: 155
Reputation: 33
I am added ‘Connection’ header and set value to ‘keep-alive’ then worked like a charm. But only in HttpClient. RestSharp/Flurl not working.
Upvotes: 0