The GET request contain the body of the payload
See original GitHub issue- Newman Version (can be found via
newman -v
): v3.2.0 - OS details (type, version, and architecture): Windows 7
- Are you using Newman as a library, or via the CLI? CLI
- Did you encounter this recently, or has this bug always been there: Maybe always
- Expected behaviour: Status 200 Code Name OK
- Command / script used to run Newman: newman run file.json
- Sample collection, and auxiliary files (minus the sensitive details): Any
- Screenshots (if applicable): No needed
Steps to reproduce the problem:
- Add payload body as POST in the Postman Client App
- Change to GET
- Save the collection
- Run newman
- The GET request contain the body of the raw payload in JSON
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
HTTP GET with request body - Stack Overflow
A payload within a GET request message has no defined semantics; sending a payload body on a GET request might cause some existing...
Read more >GET - HTTP - MDN Web Docs
It is better to just avoid sending payloads in GET requests. Request has body, No. Successful response has body, Yes. Safe, Yes. Idempotent,...
Read more >Request bodies in GET requests - Evert Pot
A payload within a GET request message has no defined semantics ... any HTTP request message is allowed to contain a message body, ......
Read more >REST API - HTTP GET with Request Body - Roy Tutorials
Request body is also known as payload of the request. I will also discuss about idempotent and safe http methods. Generally payload in...
Read more >Should you send a payload in an HTTP GET request? - LinkedIn
It is a common myth that we could not pass the request body in the HTTP GET request. HTTP 1.1 specification neither enforces...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is because the client app currently saves GET request bodies to the collection.
We are currently in the process of updating our Native apps to properly support bodies in GET requests. When we do that, you will be able to remove bodies from the “Body” tab of Postman.
For now, one workaround is to change the method from GET to POST in the Postman App, remove the body and save the request.
Thank you very much