Questions tagged [postman]

Postman is a client for sending and emulating requests over HTTP. It is most commonly used with API requests. Use for questions about the tool itself. Use with any relevant API tags if you are having issues with a specific use.

Started out as a simple testing tool, Postman is now an elegant, flexible tool used to build connected software via APIs - quickly, easily, and accurately. It is used by nearly five million developers and more than 100,000 companies worldwide.

Postman enables you to:

  • Create Collections of requests
  • Organize your work within different Workspaces
  • Split-stack development with Mock Servers
  • Use Tests & Scripts to add dynamic parameters
  • Automate tests with Collection Runner
  • Test performance & behavior with Monitors
  • Document & Publish Collections for collaboration
12313 questions
46
votes
5 answers

Delete postman cache

I use Postman extension to check out my RESTful APIs I am trying to make a request to my "localhost", but it seems to have cached one of the query parameters. I tried clearing cache of my chrome browser but this does not seem to work. I went to the…
Rahul Ahuja
  • 705
  • 1
  • 9
  • 16
45
votes
2 answers

Is there a way to Collapse All json's fields in Postman

I'm working with the chrome-app Postman, and im retriving sometimes long and complex json objects. For an easy work i need to collapse all the json object, but i can't find the option (if there is) in the program, or how to do it. Until now, i'm…
Guiman04
  • 723
  • 1
  • 6
  • 12
44
votes
4 answers

How to set the request body via Postman's pre-request script?

I use Postman 6.0 to send an HTTP request. To send a request, I use a pre-request script to get a token and put it into the environment so that it will be used in the succeeding requests. The script below doesn't work because the body is not sent.…
richard
  • 1,845
  • 1
  • 20
  • 30
44
votes
2 answers

How to compute a md5 hash in a pre-request script in PostMan?

I have to set a parameter in my request that is a md5 hash of two other parameters. I think a pre-request script can do the job, but I do not know how to compute a md5 in this script. Any idea?
Quentin
  • 1,741
  • 2
  • 18
  • 29
43
votes
6 answers

Spring/Postman Content type 'application/octet-stream' not supported

I'm using Postman to send the following request: My controller looks like this: @RestController @RequestMapping(path = RestPath.CHALLENGE) public class ChallengeController { private final ChallengeService service; @Autowired …
StackJP
  • 541
  • 1
  • 5
  • 14
42
votes
2 answers

How to view "calculated when request is sent" headers in Postman

In Postman, there are some auto-generated headers, that are only calculated when request is sent. Is there a way to view their values after the request is sent?
Ahmed Hammad
  • 2,798
  • 4
  • 18
  • 35
41
votes
8 answers

How do I integrate amazon cognito login in postman?

I was using Amazon Cognito user pool for login. When I access my web application, I get a redirect to https://.auth..amazoncognito.com/login?response_type=code&client_id=&redirect_uri= . Once logged in with the…
Shamseer PC
  • 787
  • 2
  • 9
  • 20
41
votes
6 answers

Check response header's value in Postman tests

I would like to check the value from a concrete response header ("Location") as Test Results in Postman. In the Postman's documentation I found examples of how to check the existance of headers with pm.test("Content-Type is present", function () { …
Lluís Suñol
  • 3,466
  • 3
  • 22
  • 33
41
votes
21 answers

Postman : socket hang up

I just started using Postman. I had this error "Error: socket hang up" when I was executing a collection runner. I've read a few post regarding socket hang up and it mention about sending a request and there's no response from the server side and…
kenn_ross
  • 411
  • 1
  • 4
  • 5
41
votes
8 answers

upload file springboot Required request part 'file' is not present

I want to add an upload function to my spring boot application; this is my upload Rest Controller package org.sid.web; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import…
Wintern
  • 413
  • 1
  • 4
  • 5
41
votes
5 answers

Saving a Postman header value into a variable throughout requests in a collection

I am trying to automate my test suite in Postman so that I don't have to manually go into each request and change that header value to what I initially put in the first request. My test suite currently looks like: First Request: var headerValue =…
jmcode
  • 511
  • 1
  • 4
  • 5
39
votes
3 answers

How to send a base64 image in postman

Need to make a request to a api with a image encoded in base64, the request is a put, and i was trying making in the body section using the raw format and adding i.e. this json: { "picture": { "name":…
Jorge Almonacid
  • 583
  • 2
  • 5
  • 9
39
votes
4 answers

How to store postman collections in source control

I am using POSTMAN collections to test my API before opening it up. I work with a team of developers and we would like to share/add/edit our collections amongst each other. Doing this in source control is proving slightly tricky as can be seen in…
tensai
  • 1,628
  • 3
  • 17
  • 22
38
votes
5 answers

Saving API response in Postman to a file

How can I save API response, that I get in Postman, to a Json file or CSV file?
Ashu Srivastava
  • 401
  • 1
  • 4
  • 3
37
votes
6 answers

postman: You need to enable JavaScript to run this app

I've got a new API from the backend team in a new project, when I call the api it returns "you need to enable java...", whereas I had used Postman for another project before... is it related to api, server or something else?
Hamid Shoja
  • 3,838
  • 4
  • 30
  • 45