If you need to use wget to access a site that relies on HTTP cookies to control access to the site, you can log into the site with Firefox and use the Firefox add-on Export Cookies to export all of the cookies stored by Firefox to a file, e.g.
cookies.txt
. After installing the add-on,
restart Firefox. You can then click on Tools and choose
Export Cookies. Note: you may not get the cookie you need, if
you put Firefox in private browsing mode.
You can then use the cookies file you just exported with wget. E.g. presuming
the cookies file was named cookies.txt
and was in the same
directory as wget, you could use the following:
wget --load-cookies=cookies.txt http://example.com/somepage.html