vinaydubey
02-21-03, 11:12
| #!/usr/bin/perl use LWP::UserAgent; $ua = new LWP::UserAgent; $ua->agent("AgentName/0.1 " . $ua->agent); # Create a request my $req = new HTTPS::Request ('POST' , 'https://url.com:8090/file/request.jsp'); $req->connection('keep-alive'); $req->authorization_basic('test', 'test'); $req->content_type('application/x-www-form-urlencoded'); $req->content(''); # Pass request to the user agent and get a response back my $res = $ua->request($req); # Check the outcome of the response if ($res->is_success) { print $res->content; } else { print "Bad luck this time\n"; } please help me in writing https connection to URL I want to access url using https connection every 10 minutes where I will find all the modules thanks vinay |