This week I’ve published a Curl wrapper with Tor configuration defaults. Check the documentation for detailed getting started and usage instructions, the source code is available on GitHub.

Clone

mkdir -vp ~/git/hub/paranoid-linux

cd ~/git/hub/paranoid-linux

git clone --recurse-submodules git@github.com:paranoid-linux/torrific-curl.git

Install

cd ~/git/hub/paranoid-linux/torrific-curl

make install

Usage

  • To download the Check Tor page…
torrific-curl 'https://check.torproject.org/' -o '/tmp/check-torproject.org.html'
  • To send a POST request via Tor…
torrific-curl --data 'key=value' 'https://httpbin.org/post'
  • To send a GET request over Tor…
torrific-curl -X GET\
              -H 'Accept: application/json'\
              -H 'Content-Type: application/json'\
              'https://httpbin.org/get'