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
3
votes
2 answers

Create product in Microsoft Dynamics 365 for Financials

I try to create a product (item) using OData V4 URL available in Web Services section in Microsoft Dynamics 365 for Financials as shown below. I use Postman to execute the POST request. Each request is proceed with an authenticated and valid…
3
votes
2 answers

How to update global variable in Postman?

I have a test which Posts some items e.g. POST:item : 1 POST:item : 2 and so on and now in 1st Post request, I am trying to set a global variable in pre-request-script postman.setGlobalVariable("item", 1); and use this variable in the body e.g …
Pooja
  • 2,162
  • 5
  • 33
  • 64
3
votes
1 answer

Google Vision API Invalid JSON payload received. Unknown name \"images\" at 'requests[0]'

I want to use Google vision API using Postman or any other rest api tool. So as per documentation I convert my image to base64-encoded-image-content using Java 8 encoding as below : byte[] data = Files.readAllBytes(path); // getting base64 encoded…
sanjeev kumar
  • 373
  • 1
  • 6
  • 21
3
votes
0 answers

Unable to get google token in postman

I'm developing an app that will need google's OAuth2.0. Initially, I was trying to test the webservice using postman. and below are the steps that I've followed. In https://console.developers.google.com/, I've created a project. Under Library I've…
user3872094
  • 3,269
  • 8
  • 33
  • 71
3
votes
0 answers

Passing cookies between requests in Postman runner

I'm writing a Postman collection to be executed in Postman Runner, which requires that cookies from a first request be used in subsequent requests. In curl, you can achieve this like so curl -d "username=x&password=y" -c logincookie.txt…
Tadhg
  • 561
  • 5
  • 15
3
votes
3 answers

How can I find response cookie names in Postman tests?

Is there a way to retrieve the response cookie names in a Postman test? I can get values with postman.getResponseCookie("").value. However, based on differing scenarios, the cookiename changes.
fil
  • 137
  • 1
  • 9
3
votes
0 answers

Images in html response not shown in chrome extension

When the response includes html with images, and those images have a src attribute in the form of a url, the Chrome-extension version of Postman displays a "broken image" icon (like the one on the line below). When using a native version (tried…
aryzing
  • 4,982
  • 7
  • 39
  • 42
3
votes
1 answer

Curl and Postman giving different response?

I am writing API in node.js. url http://localhost:8000/api/request?connId=19&timeout=8000 when I call above API from Postman then it takes 8 seconds to give the response. same as expected. but when call this from curl it gives output instantly. curl…
Shubham Batra
  • 2,357
  • 5
  • 29
  • 48
3
votes
0 answers

Cannot get OAuth 1.0 Token in OpenBankProject request due to missing oauth_callback

I'm trying to use OpenBankProject to get Token, but in Postman I cannot do this due to Status 400 Bad Request and the following parameters are missing : oauth_callback. From doc I get info that it should be: Method POST Authorization: Add params to…
y07k2
  • 1,898
  • 4
  • 20
  • 36
3
votes
2 answers

Authorize Attribute Authentication with Postman in Web Api

I am working with RESTful services and find Postman as one of the best plugin to GET, POST and test the API's. I find Basic Auth, No Auth, DIgest Auth, OAuth, AWS in postman. How do I test the Authorize Controller and methods. I am aware that…
Chatra
  • 2,989
  • 7
  • 40
  • 73
3
votes
2 answers

POSTMAN | GET Variable for if - statement

i want to do a if statement in Postman. I have the Environmet Variable: server_state1 & server_state2 These Variables both gets numbers from 0-3. Now i want to write a Pre-request-Script in an PUT Statement. The IF Statement sounds like var…
klausf11
  • 95
  • 1
  • 2
  • 10
3
votes
1 answer

Checking a value in a nested JSON using Postman

I have a nested JSON returned from an API that I am hitting using a GET request, in POSTMAN chrome app. My JSON looks like this "result": [ { "_id": "some_id", "name": "India", "code": "IN", "link": "http://www.india.info/", "closingTime":…
demouser123
  • 4,108
  • 9
  • 50
  • 82
3
votes
3 answers

Postman - Leading zeros being removed from CSV data file

I'm trying to run my collection using a CSV data file. Some of the data has leading zeros (e.g. 003883) but when I choose the CSV file in Postman and preview the file, the leading zeros have been removed. Opening the file in a text editor shows that…
Shane
  • 45
  • 1
  • 5
3
votes
2 answers

Postman App on windows: Unable to see application menu and update tab on settings dialog

I am using the free postman app on win 7. I am unable to see application menu and update tab on settings dialog. I have enabled debugging for packed apps as shown below. Debugging for packed apps Mac, Windows, Linux, Chrome OS Enables debugging…
Ulysses
  • 5,616
  • 7
  • 48
  • 84
3
votes
3 answers

Android Retrofit - POST request doesn't work, but in Postman it works

This is the error I'm getting: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ JSON response I'm getting from Postman: { "title": "test title", "body":…
itsChathurangaJ
  • 49
  • 1
  • 1
  • 11