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
59
votes
4 answers

postman - how to generate random number in specific range?

I need to generate random number in specific range for postman. I wonder if there is possible to generate it and to use it in variable in postman, from what I saw at postman site is: {{$randomint }} will give random number between 1-1000 and I…
user8144993
57
votes
5 answers

How to add authorization header in POSTMAN environment?

I'm testing bunch of API calls using POSTMAN. Instead of adding authorization header to each request, can I make it as a part of POSTMAN environment? So, I don't have to pass it with every request.
asp
  • 649
  • 1
  • 6
  • 10
57
votes
10 answers

Load testing with Postman REST/RESTFUL tool

I have added the plugin Postman to Chrome browser for load testing of my API. But I am clueless about how to do the load test with Postman tool. My query is how to simulate "Virtual Users" in this tool?
Kuntal
  • 611
  • 1
  • 6
  • 6
56
votes
8 answers

Graphql post body "Must provide query string."

I use Express-graphql middleware. I send the following request in the body line: POST /graphql HTTP/1.1 Host: local:8083 Content-Type: application/graphql Cache-Control: no-cache Postman-Token: d71a7ea9-5502-d5fe-2e36-0ae49c635a29 { testing { …
Gopard
  • 922
  • 1
  • 12
  • 26
55
votes
2 answers

Null value when Pass values [FromBody] to post method by Postman plugin

I use api controller in ASP.net web API and i need to pass value to post method by [FromBody] type.. [HttpPost] public HttpResponseMessage Post( [FromBody]string name) { .... } i use Postman plugin but when send to post method value of…
Saeed Ahmadian
  • 1,112
  • 1
  • 10
  • 21
54
votes
4 answers

FCM with Postman - The request was missing an Authentication Key (FCM Token)

//body its like this { "to": "/topics/NEWS" , "data":{ "extra_information": "This is some extra information" }, //notification that i need to give "notification":{ "title": "ChitChat Group", …
HemalHerath
  • 1,006
  • 2
  • 18
  • 38
54
votes
1 answer

What is the postman-token header attribute in generated code from Postman?

I have been using postman to explore a REST interface. When using Postman's code generation feature, regardless of which programming language I select, Postman will always add a postman-token attribute in the header. Why is it there? See for…
d4rty
  • 3,970
  • 5
  • 34
  • 73
53
votes
5 answers

Error in Postman: Error: write EPROTO 8768:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:

During request GET in Postman (https://localhost:9001/test) I've received an error: Error: write EPROTO 8768:error:1408F10B:SSL routines:ssl3_get_record:wrong version…
Vik
  • 565
  • 1
  • 4
  • 5
53
votes
4 answers

how Postman send requests? ajax, same origin policy

I have found this very useful Chrome extension called Postman. This is a very useful extension especially when you are into programming RESTful applications. One thing I am confused on is that how this plugin/extension able to send POST request…
Joey Hipolito
  • 3,108
  • 11
  • 44
  • 83
50
votes
7 answers

Debug output in tests

How do I output some information in Postman tests? console.log(tv4.error); tests["Valid Data1"] = tv4.validate(data1, schema); console.log() seems to be working but I want to output my info into the same panel where my assertions go (for easier…
UserControl
  • 14,766
  • 20
  • 100
  • 187
49
votes
4 answers

How to increase Postman Client request timeout

I am requesting an API from postman and getting response after 2 minutes, which is fine because the business logic is complex. But the problem is that postman is giving 502 Bad Gateway After that, I checked the business logic and found that it…
Akshay Pingle
  • 493
  • 1
  • 4
  • 5
49
votes
2 answers

Sending multipart/mixed content with Postman Chrome extension

I'm struggling with creating POST multipart/mixed request with Postman Chrome extension Here is my curl request what works nice curl -H "Content-Type: multipart/mixed" -F "metadata=@simple_json.json; type=application/json " -F "content=@1.jpg;…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
47
votes
6 answers

To run curl command on postman getting error as Error while importing Curl: arg.startsWith is not a function

I have a curl link which is successfully run with terminal but i want to convert it as a POSTMAN request where link is, curl -v --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X GET -u :
neha jain
  • 471
  • 1
  • 4
  • 5
47
votes
4 answers

Postman Error: self signed certificate in certificate chain

I try to test REST api in Postman but every time I try to POST I get the following error Error: self signed certificate in certificate chain. I have tried with the SSL certificate verification on and off but both methods dont work. Postman is…
Nedim
  • 481
  • 1
  • 4
  • 7
46
votes
13 answers

Counting records in JSON array using javascript and Postman

I have a control that returns 2 records: { "value": [ { "ID": 5, "Pupil": 1900031265, "Offer": false, }, { "ID": 8, "Pupil": 1900035302, "Offer": false, "OfferDetail": "" } ] } I need to…
Chrissi
  • 565
  • 1
  • 6
  • 6