As you were already told in the Chatterbox, use WWW::Mechanize for this.
In reply to Re: Download a file from https site by Corion in thread Download a file from https site by maheshtrend