post image

Using curl and wget with Headers to Troubleshoot a Rest Endpoint

Oct 8, 2015 Gethugothemes

Had some fun today trying to reproduce an application error request to a rest endpoint with cli tools.

##wget wget -v --header "Accept: application/json" --header "Accept-encoding: gzip" https://www.endpoint.com

##curl curl -v -H "Accept:application/json" -H "Accept-encoding:gzip" -H https://www.endpoint.com

Similar Posts

OpenBSD PF and OpenDNS

At home, I needed a way to prevent anything but OpenDNS from being used for DNS, and needed a rule that would do it in OpenBSD PF. Install and Configure First off, to setup an OpenDNS client on OpenBSD, install the ddclient package via pkg_add ddclient