Mirror page with wget (e.g. cacti)

wget \
    -q \
    -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0" \
    --no-check-certificate \
    --keep-session-cookies \  
    --save-cookies ../cookies.txt \
    --post-data 'action=login&login_username=foo&login_password=bar' \
"https://www.example.com/graph_view.php?action=tree&tree_id=1"
 
wget \
    -m \
    -q \
    -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0" \
    -R "*logout*" \
    --convert-links \
    --force-html \
    --adjust-extension \
    --no-check-certificate \
    --keep-session-cookies \
    --load-cookies ../cookies.txt \
    --post-data 'action=login&login_username=foo&login_password=bar' \
"https://www.example.com/graph_view.php?action=tree&tree_id=1&leaf_id=1234"