FAQ Database Discussion Community


CURL to POSTMAN

api,curl,http-headers,postman
$ curl https://api.blockscore.com/question_sets/536c1532627463780b000000/score \ -u sk_test_n5049aa6053c9a0217bea78070fbf501: \ --header "Accept: application/vnd.blockscore+json;version=4" \ -d 'answers[][question_id]=1' \ -d 'answers[][answer_id]=3' \ -d 'answers[][question_id]=2' \ -d 'answers[][answer_id]=2' \ -d 'answers[][question_id]=3' \ -d 'answers[][answer_id]=2' \ -d 'answers[][question_id]=4' \ -d 'answers[][answer_id]=2' \ -d 'answers[][question_id]=5' \ -d 'answers[][answer_id]=5' how to set this parameters in getpostman? what is...

How to export specific request to file using postman

rest,postman
I want to export one specific request from postman extension (chromium) and send it to another developer so that he can import it). How i can do it?

Why am I getting request method GET not supported?

rest,http,post,cisco,postman
I am using PostMan as a REST client to test this API method Cisco ACL Analysis API. specifically POST /acl/trace or getAClTracksStd (first go to Policy Analysis) Here is my PostMan HTTP test call Does anyone who is familiar with PostMan understand why I am getting this "Request method 'GET'...

How to post data to the table from POSTMAN client

mysql,json,spring-data-rest,postman
I am developing a shoppingcart application in spring-data-rest. I am testing my application from POSTMAN client. In my application I have Cart table and Cart_item table. Cart_item table has cart_id field which will get id from Cart. I am able to PUT data to Cart and Cart_item individually. But I...

How to see a returned html rendered as a webpage with postman

postman
I'm working with postman to test a flask app, I've noticed (like in the screenshot) that I am getting the returned HTML. I know in the past I was able to see the returned HTML rendered as a webpage, but now I can't (despite clicking on various buttons). How...

Testing WCFService1 with Postmen or SoapUI gives 400 Bad Request

.net,wcf,visual-studio-2013,soapui,postman
When I make a brand new WCF Service Application named "WcfService1" in Visual Studio 2013 and immediatelly run it, the requests done by WCF Test Client are working flawless. Not a surprise. When I try to test this same initial application in REST/SOAP clients like Postman or SoapUI, I get...

Where to put custom advanced queries in a sailsjs mongodb stack

mongodb,sails.js,postman,sails-mongo
I want to proceed with more advanced queries in a sailsjs and mongodb stack where sailsjs is setup to serve as an api with data against a front end client. I've been able to fetch data with some basic queries but now looking into on how to proceed with more...

Postman addon's like in firefox

firefox,firefox-addon,postman
Is there a recommended add-ons in the firefox, which is has the most features that postman have?

Send code via post message is not working

javascript,node.js,express,postman
I wanted to send code to some node application and I use the postman with post message and in the body I put the following: module.exports = function() { var express = require('express'), app = express(); app.set('port', process.env.PORT || 3000); return app; } in the header of the request I...

Postman escaping form-data to API causing unexpected token error

json,escaping,postman
I am trying to use Postman to troubleshoot an API error I am getting. I am using OAuth to authenticate and so I am posting headers and form-data. However, it seems the error I have is related to the form-data. I have also tried with the 'Content-Type' to be 'application/json;...

Works with CURL how to format for Postman/REST client

rest,post,curl,postman
I'm sure this is a dumb question but I haven't been able to see the light. If I have a curl command ... curl -v -F "dataType=dws" -F "format=csv" -F "compression=gzip" -F "sha256sum=17685b28be3af7b71bcab78c0393d548d7cd563f3fd5d955309c9512a4ad28ad" -F "[email protected]/Users/xxx/sql/file.gz" http://localhost:8080/p20/fileUpload that works perfectly, how do I do the same thing via Postman(or any REST...

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

hash,md5,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? Regards, Quentin...

x-access-token not intercepting in angular.js

angularjs,interceptor,postman
When i use chrome extension called POSTMAN to call an api api.get('/me', function(req, res) { res.json(req.decoded); }); return api; Using x-access-token as a header with a valid token value, i get a valid respond. When using interceptor i copied from online tutorial i get this error message: http://localhost:3000/api/me 403 (Forbidden)...

Updating field type from 'date' to 'string' in elasticsearch

codeigniter,elasticsearch,postman
I am new to Elasticsearch. I have created an index with few sub-types. { "rkb_search_v3": { "mappings": { "event": { "properties": { "description": { "type": "string" } "start_date": { "type": "date", "format": "dateOptionalTime" }, "title": { "type": "string" } } } } } } I want to update start_date type...

Getting Unsupported Media Type when trying to access POST Json consumer endpoint developed using Jersey

java,json,jersey,jax-rs,postman
I am getting this error when I try to execute my POST webservice methods: I am using Postman to send the request: My entity is below: @Entity @XmlRootElement @Table(name = "bandeiras") public class BandeiraCartao extends EntidadeBase { private static final long serialVersionUID = 5944226798248177637L; @XmlElement @Column(length = 60, nullable =...

How to delete session cookie in Postman?

postman
I am testing my API in Postman and I'm having trouble simulating a log out. Basically if I do a call to delete the session cookie, the session cookie is still there afterwards, and I'm still able to access routes that require authentication. The route handler on the server is:...

How create a custom response when spring-security receives null credentials (username and password)?

spring,security,spring-security,basic-authentication,postman
I am using postman to send a username and password without value to my server; it's like username=null and password=null. To control the security of my server, I use spring security 3.2. When it receives these credentials spring-security responds with this error. Estado HTTP 500 - Fields must not be...

postman - how to check picture size

image,size,postman
I am trying to write some tests in Postman (I am running the Postman Jetpacks packaged app, if it does matter) and I am facing some inconsistencies. The scope of my test is to verify the size (width and height) of a set of images against some predefined values. The...

The MAC signature found in the HTTP request '…' is not the same as any computed signature

rest,azure-storage-blobs,postman
I'm sending the following request in Postman to retrieve a simple .jpg from Azure Blob storage at this URL https://steamo.blob.core.windows.net/testcontainer/dog.jpg GET /testcontainer/dog.jpg HTTP/1.1 Host: steamo.blob.core.windows.net Authorization: SharedKey steamo:<my access key> x-ms-date: Tue, 26 May 2015 17:35:00 GMT x-ms-version: 2014-02-14 Cache-Control: no-cache Postman-Token: b1134f8a-1a03-152c-2810-9cb351efb9ce If you're unfamiliar with Postman it is...

Testing with OAuth2 and Postman

zend-framework2,postman,apigility
I am using ZF2 Apigility and am working on setting up an OAuth2 workflow for an API I am writing. So far I can get the following to work: Call the API and get a token { "access_token": "62f6109dcbce42b38f9117b21529faf30fc0ee86", "expires_in": 3600, "token_type": "Bearer", "scope": null } Now I know I...

cURL working in postman, not in Terminal (for basecamp)

php,curl,postman,basecamp
I am trying to refresh access_tokens through basecamp api. But I am facing a strange error. The cURL request is working fine on POSTMAN (tab: form-data). But I tried every configuration of cURL in PHP, but not able to make it work. This is the code that I am using:...

HTTP Status 415 - Cannot consume content type

java,json,resteasy,postman
POST operation to the REST service with JSON body returning org.jboss.resteasy.spi.UnsupportedMediaTypeException : Cannot consume content type exception Both @Consumes(MediaType.APPLICATION_JSON) and @Consumes("application/json") returned same exception. I tried calling the service using Postman API client. @RolesAllowed("admin") @POST @Consumes(MediaType.APPLICATION_JSON) @Path("/auth") public Response login(UserCl usr){ if(usr.getUsername().compareTo("user") == 0 && usr.getPassword().compareTo("pass") == 0){ return...

Sharepoint REST Field Property does not exist

rest,sharepoint,postman
I am using Postman for Chrome to test some simply stuff with Sharepoints REST Api. Well - I get an error right in the beginning while trying to retrieve certain Fields from a List - here are some pictures: SharePoint List: Calling for CPU Calling for RAM - which fails:...

Postman - Getting an error when manually POSTing

json,post,postman
I have a program that is sending http posts. Using Charles, I can see the raw data that is being sent: POST /api/login/post HTTP/1.1 Host: *****.com Content-Type: application/json; charset=utf-8 Accept-Encoding: gzip, deflate Content-Length: 52 Accept-Language: en;q=1 Accept: application/json Connection: keep-alive User-Agent: ******/4.4 (iPhone Simulator; iOS 8.1; Scale/2.00) {"password":"abc123","email":"*****@*****.com"} I am...

Parse: Authorization required from Postman client

parse.com,postman
This question is a little out of the norm and I hope it is suited for SO, however if it is not appropriate let me know an appropriate board and I will move it there. I'm writing an evaluation report for an API assignment at University, and I am required...

Why am I getting a 500 response for my POST on my Jersey REST API?

java,jersey,dropwizard,postman
I have just begun implementing my first Drowizard project. Here's my first resource class: @Path("/bill") public class CommandResource { //... @POST @Consumes(MediaType.APPLICATION_JSON) @Path("/createBillForStudy") public Response handleCreateBillForStudyCommand(CreateBillForStudyCommand cmd, @Context UriInfo uriInfo) { System.out.println("Creating bill for command: " + cmd); UUID newId = billCreator.handle(cmd); URI location = uriInfo.getBaseUriBuilder().path(CommandResource.class).path("/" + newId).build(); return...

Having trouble accessing the Response Viewer of PostMan Chrome App

client-server,postman
I'm using the postman packaged app to analyze requests and find it very useful in combination with the chrome interceptor extension. However, it would be great to see the servers response and therefore use the interceptor to listen both ways. Is this possible? https://www.getpostman.com/docs/responses Any help would be appreciated....