cudev
cudev

Reputation: 33

RestSharp requests became working when I intercept them with Fiddler Everywhere

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

Answers (1)

cudev
cudev

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

Related Questions