Hi,

On Thu, 14 Jun 2018 19:19:58 +0000
<sivavani.base...@rwe.com> wrote:

> Hi All,
> 
> We have recently upgraded RHEL OS from 6.7 to 6.9. After upgrade we have
> observed that service-now incidents are not creating.
> 
> We are using proxy to communicate.
> 
> Created simple script to make call to service-now, but it is failing to
> connect.
> 
> #!/usr/bin/perl -w
> use LWP::UserAgent;
> 

please see http://perl-begin.org/tutorials/bad-elements/ .

> $ENV{https_proxy} = "http://rproxy-hdc.rwe.com:8080";;
> $ENV{HTTPS_PROXY} = "http://rproxy-hdc.rwe.com:8080";;
> 
> my $ua = LWP::UserAgent->new;
> $ua->env_proxy;
> 
> # declare the SOAP endpoint here
> my $response = $ua ->
> get('https://soap_user:soap_...@dev.service-now.com/?WSDL');
> 
> if ($response->is_success) {
>      print "Connection success";
> }
> else {
>      print "Connection failed";
> }
> 
> Script output:
> [root@XXXX tmp]# perl test_lwp2.pl
> 503 Service Unavailable at test_lwp2.pl line 29.
> Connection failed

There is no line 29 in your script. Can you show the actual code?

> [root@XXXX tmp]#
> 
> We are using perl-libwww-perl-5.833-5 version.
> 
> Could you please help on how to proceed on this error ?
> 
> 
> Regards,
> Siva Vani
> 



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
http://www.shlomifish.org/open-source/resources/tech-tips/

Chuck Norris can only convince you that you're deceased. Summer Glau can
also convince you that you're alive, which is much harder.
    — http://www.shlomifish.org/humour/bits/facts/Summer-Glau/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

Reply via email to