in reply to Re^2: How do I convert this wget to perl?
in thread How do I convert this wget to perl?

See LWP::UserAgent. The ->get method sends a GET request and downloads the response to the file file.bin as per the :content_file argument.

I don't find a special Cookie argument documented for ->get though, so I suspect that this won't work to set the cookie header as you want it. I think you will have to use HTTP::Cookies to set the cookie to the value you want.