View Poll Results: perl https connection

Voters
2. You may not vote on this poll
  • perl https connection

    1 50.00%
  • perl https connection

    1 50.00%
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Unanswered: https connection

    #!/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

  2. #2
    Join Date
    Oct 2002
    Location
    Baghdad, Iraq
    Posts
    697

    Re: https connection

    Originally posted by vinaydubey
    where I will find all the modules
    thanks
    vinay
    http://www.cpan.org/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •