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.
In reply to Re^3: How do I convert this wget to perl?
by Corion
in thread How do I convert this wget to perl?
by Todd Chester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |