is there "the simple" way to show all the payload... i mean if i did a get/post request , i am interested in seeing in json format the payload "echo back in json"
is there "the simple" way to show all the payload... i mean if i did a get/post request , i am interested in seeing in json format the payload "echo back in json"
well there is echo module for nginx which definitely help you with more complex json. If all you want is IP in json format you could try something like this with pure nginx(untested)
You can also avoid all the HTTP 'overhead' by using a simple DNS query to achieve the same:
alias myip4="dig @208.67.220.220 @208.67.222.222 myip.opendns.com A +short"
alias myip6="dig @2620:119:35::35 @2620:119:53::53 myip.opendns.com AAAA +short"
Comments
is there "the simple" way to show all the payload... i mean if i did a get/post request , i am interested in seeing in json format the payload "echo back in json"
well there is echo module for nginx which definitely help you with more complex json. If all you want is IP in json format you could try something like this with pure nginx(untested)
It's also possible via DNS:
For IPv4:
And for IPv6:
host -4 myip.opendns.com resolver1.opendns.com
host -6 myip.opendns.com resolver1.opendns.com
curl ipinfo.io is the most useful
You can also avoid all the HTTP 'overhead' by using a simple DNS query to achieve the same:
it-df.net: IT-Service David Froehlich | Individual network and hosting solutions | AS39083 | RIPE LIR services (IPv4, IPv6, ASN)