'Postman HTTP Snippet
I've seen many times over the internet the HTTP request that follows the following standard:
POST /v1/main HTTP/1.1
Host: localhost:5000
Content-Type: application/json
Postman delivers that snippet upon export of the request.
I've always wondered how is that useful for making a request using the terminal instead of using cURL.
How can I use this standard to make a request?
Solution 1:[1]
This is basically a log from postman similar to curl.
make same request with curl with an extra arg -v. it will also show similar log.
you can checkout dothttp which also does the same thing as postman but more.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | cedric |
