Skip to content

On CLI

Many command-line tools respect the standard HTTP_PROXY / HTTPS_PROXY environment variables, allowing them to transparently read from your WebArc archive.

export HTTP_PROXY=http://localhost:3000
export HTTPS_PROXY=http://localhost:3000

Any tool using HTTP will now retrieve data from the archive instead of the live internet.

curl

HTTP_PROXY=http://localhost:3000 curl http://example.com/path

This returns the archived version of example.com/path.

wget

wget -e use_proxy=yes \
     -e http_proxy=http://localhost:3000 \
     http://example.com/