Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19

by MidLifeXis (Prior)
on Aug 29, 2013 at 18:36 UTC ( #1051503=note: print w/ replies, xml ) Need Help??


in reply to 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19

I am going to start over with my questions, as I think I may now have a handle on what you are asking.

  • It seems to me that you are saying that your web server responds using Firefox to any IPv4 or IPv6 address which is valid for the machine.
  • It also seems that you are saying that LWP is able to handle contacting the web server using any IPv4 address for the machine.
  • It seems like you are stating that using LWP to access an IPv6 address for the server is failing, even if it is an identical URL that Firefox can use to access the server.
Do I have that correct?

--MidLifeXis


Comment on Re: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19
Re^2: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19
by Anonymous Monk on Sep 02, 2013 at 11:38 UTC

    yes you are right

      I got it working with the following code

      use Net::INET6Glue::INET_is_INET6; use LWP::Simple; print get( 'http://[2620:0:a17:e03d:250:56ff:fea4:6d]/server-status' +);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051503]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-12-27 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls