:::: MENU ::::

Postman

Postman is a tool that allows us to make requests to any Web address or endpoint.

Installation

We go to https://www.getpostman.com/apps and select correct the version for our operating system.

Register

Optionally we can register on the application, with the advantage of having all our data syncronized between all our devices.

Basic use

The basic use is very direct: to introduce in the upper bar (the one with the text “Enter request URL”) a URI (address with a resource) and click on “Send”.
That will send a request to that resource, that will give us one of several possible responses. Examples:
– If we make a request to a static Web page, it will return a HTTP file text. It can also return an image file.
– If we make a request to a dynamic Web page that waits for requests, it will return a dynamic message more or less readable.

Basic use examples

– If we use www.google.com, this will return (as a text file) the initial Web page of the search application.
– If we use https://postman-echo.com/time/now, we will obtain the actual date and time.

Advanced use

Además de peticiones básicas, es habitual hacer peticiones y enviar lo que se llama un “payload”, que es una carga que se recibirá en destino, mediante la pestaña Body. Para esto hay que usar un tipo de petición diferente a la de GET, que es la de POST. Cambiamos a este tipo de peticiones y se habilita la pestaña.
Apart from basic requests, it is common to make requests and send what is called a “payload”, that is an amount of data to be received in the destiny, through the Body tab. To do this it is needed to use a different request type than GET: the POST type. We change to this type and the Body tab is available.

Advanced use example

We change to the POST request type and use this URI: https://postman-echo.com/post.
In the Body tab we include these two variables: clave1 (valor1) y clave2 (valor2).
We click on Send and the application that is listening on the other side sends us (among other data) our two variables back:
{
    "args": {},
    "data": {},
    "files": {},
    "form": {
        "clave1": "valor1",
        "clave2": "valor2"
    },
    "headers": {
        "host": "postman-echo.com",
        "content-length": "242",
        "accept": "*/*",
        "accept-encoding": "gzip, deflate, br",
        "accept-language": "en-US,en;q=0.9,it;q=0.8,es;q=0.7,ru;q=0.6,de;q=0.5",
        "cache-control": "no-cache",
        "content-type": "multipart/form-data; boundary=----WebKitFormBoundarymmryGRzmdkkgROOE",
        "cookie": "sails.sid=s%3ARs8ZDlzTzcjsS3PsEqvHSUY9OcNRBh1N.4dk0AL9uBg7lGUlSWIUcyUZFgtLC8pMehFu7iaQZnC8",
        "dnt": "1",
        "origin": "chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop",
        "postman-token": "d1438966-0e8d-1399-f8b5-50636850e887",
        "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/63.0.3239.84 Chrome/63.0.3239.84 Safari/537.36",
        "x-forwarded-port": "443",
        "x-forwarded-proto": "https"
    },
    "json": null,
    "url": "https://postman-echo.com/post"
}

So, what do you think ?