in reply to 500 Can't connect to login.salesforce.com:443

(Connection timed out)

That's more likely to be a firewall or routing issue than anything connected directly with perl. Check you can connect to the URL from the box without using perl - if you can't then it's a job for your IT Dept.

  • Comment on Re: 500 Can't connect to login.salesforce.com:443

Replies are listed 'Best First'.
Re^2: 500 Can't connect to login.salesforce.com:443
by kunaltyagi (Novice) on Sep 13, 2016 at 13:44 UTC

    Yes, I am able to connect the URL with the same user credentials...

      So try this:

      #!/usr/bin/env perl use strict; use warnings; #use IO::Socket::SSL 'debug4'; use LWP; use Test::More tests => 1; my $ua = LWP::UserAgent->new; my $res = $ua->get ('https://login.salesforce.com/'); ok ($res->is_success);

      which works for me with

      • Perl v5.20.3
      • LWP 6.15
      • IO::Socket::SSL 2.012
      • Mozilla::CA 20141217

      If it fails for you, uncomment the IO::Socket::SSL line to obtain a better idea of where the problem might lie.