Top "Postman-pre-request-script" questions

Running a request in Postman multiple times with different data only runs once

I am new to Postman and running into a recurrent issue that I can’t figure out. I am trying …

postman postman-collection-runner postman-pre-request-script
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 …

postman postman-pre-request-script
How to set basic authorization from environment variable in postman?

I want to set basic Authorization in Postman using environment variable. Because I have different authorization username and password for …

postman postman-pre-request-script
In POSTMAN how do i get substring of response header item?

I am using postman to get response header value like below: var data = postman.getResponseHeader("Location") . //value is "http://aaa/…

postman postman-pre-request-script
postman 'There was an error in evaluating the Pre-request Script' but pre-request script is empty

I have a shared collection on Postman. When I run the request in the shared collection it fails with the …

postman postman-pre-request-script