Ipv6 Post Request does not work

Hii everyone,

I am having troubles doing a POST request using Postman.

this is the url I am using: https://[fe80::4e76:5209:e389:6ce9%en0]:8443/api/data

As you can see I have specified the interface I want to use, in this case: en0

My request includes a json body and some specific keys, which I disclose in the following CURL request:

curl -vk -H -g “User-Agent: Client/1.0.0” -H “Content-Type: application/json; charset=US-ASCII” --user xxxx:xxxx -d ‘{“some_data”: “data”}’ -XPOST ‘https://[fe80::4e76:5209:e389:6ce9%en0]:8443/api/data’

The server uses SSL, but I have disabled the usage of it both in the CURL request and in Postman.

What happens is that my request works using CURL but it does not using Postman.
I also have tracked the packets with Wireshark and I see packets flowing when I am using the CURL but nothing when I use Postman, so I guess Postman is not sending anything through my wifi interface.

Thanks for any advice.

I similarly had an issue when using an IPV6 address in my request. Specifically, the Postman console was returning the following error: “getaddrinfo ENOTFOUND”. I found the following workaround which let me execute my request without errors (in Linux):

  1. Add an entry to /etc/hosts with my IPV6 address, for example:
    2607:f8b0:4002:c02::8a ipv6
  2. Change my request to use http://ipv6/

This allows the lower levels of software to lookup the address with DNS. It would be simpler to not have to do this, but something in the Postman/Node.JS stack seems to be misinterpreting IPV6 addresses.