Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.74k stars 1.97k forks source link

Json body not sent with POST #1144

Closed kitsu closed 5 years ago

kitsu commented 6 years ago

Details

I'm extending a WebApi2 ODataV4 end point with CRUD operations. I'm trying to test my POST (add) action, but the body is always empty. Here is a screenshot showing the body content and the zero content-length:

2018-08-29 13-03-41

When I make the same request with Fiddler it actually works, so it seems you are not including the body?

I really like Insomnia, and I've used it to build and debug all kinds of things, but this is the first time I've tried posting with a body.

welcome[bot] commented 6 years ago

👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. If you're requesting a feature 🎁, please provide real use cases that would benefit. 👪

To help make this a smooth process, please be sure you have first read the contributing guidelines.

gschier commented 6 years ago

Based on your screenshot it seems like it should be working. I've never heard of that happening before. Perhaps it's a problem with the NTLM auth.

Can you try the same request but without any auth and see if the Timeline shows a body being sent?

kitsu commented 6 years ago

You're right, setting it to no auth allows the body to go through!

That solves my immediate problem, I just need to disable authentication while testing, thanks.

gschier commented 6 years ago

No problem. libcurl is the thing that handles the NTLM negotiation. Some Googling indicates that there have been similar problems in the past regarding this so it could be a bug in libcurl, which would be unfortunate.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.