How to send a base64 image in postman

You could find online base64 image encoder. They encode an image to a string. The example of raw body in JSON format in the POSTMAN: “profile”: { “first_name”: “John”, “last_name”: “Dow”, “photo”: “iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=” } I think, that “name” and “content_type” is obvious in your JSON.

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

If the request needs to be of type application/x-www-form-urlencoded: const options = { url: ‘http://some/url’, method: ‘POST’, header: { ‘Accept’: ‘*/*’, ‘Content-Type’: ‘application/x-www-form-urlencoded’, }, body: { mode: ‘urlencoded’, urlencoded : [ { key: ‘loginIdentity’, value: ‘admic’}, { key: ‘password’, value: ‘abc123’}, ] } }; pm.sendRequest(options, function (err, res) { // Use the err and res … Read more

Delete postman cache

Cache-Control request header can be used but one thing to clarify no-cache does not mean do not cache. In fact, it means on every HTTP request it “revalidate with server” before using any cached response. If the server says that the resource is still valid then the cache will still use the cached version. while … Read more