â€¢ Open your browser to the apropriate page and login
â€¢ Sniff session while loading random pages from the site in the browser
â€¢ Leave broswer open to the site
â€¢ Stop sniffing the data, and analyze the dump from the site, find and copy the Cookie string
â€¢ With wget you add –header “Cookie: cookiename=data; secondcookiename=data” http://username:password@site to the options.
â€¢ make sure that you start mirroring from inside the site, ie: beyond the login page.
In my case the final wget string looked like this:
wget –mirror –convert-links –page-requisites –html-extension –cookies=off –header “Cookie:ABC%2ESession=YcnpPdnqLFCfYA6p%2DITgU84eRUVSrKV30; ASPSESSIONIDCCSTCRTT=GCCLDPDDKDIACCHE” http://username:password@site
Note that most of the cookie data has been deleted to keep this example brief.