Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

curl has a very handy --resolve option for that:

curl --resolve 'panel:443:192.168.10.5' -k -X GET https://panel/rest/configuration

Hostname can be set to * in recent versions of curl, it's even more handy:

curl --resolve '*:443:192.168.10.5' -k -X GET https://panel/rest/configuration



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: