http://www.perlmonks.org?node_id=994263


in reply to https request failing

If $url works from a browser but not from your script check to see that there's no proxy in between (the 8080 part). Does this show up as an environment variable (HTTP_PROXY/HTTPS_PROXY)? If so consider removing the trailing slash from "8080/"

Replies are listed 'Best First'.
Re^2: https request failing
by bethereu2 (Initiate) on Sep 18, 2012 at 12:20 UTC
    Hi, I checked the env params:
    env | grep proxy http_proxy=http://<company-proxy>.se:8080/ https_proxy=http://<company-proxy>.se:8080/ no_proxy=localhost, 127.0.0.1, .<companyname>.se, .company.com
    In the perl script I used: no_proxy() should not proxy be skipped?
    br, //mike

      That's worth investigating, but I'll leave that to you. Regardless I think the trailing slash may cause problems, which is why I suggested removing it.

        I don't know if you have solved it or not, but... I do have a problem that sounds like the one you experience. What I noticed is that when I am using GET (as one example) on an HTTP address, then the module uses both environment variable "http_proxy" and "no_proxy" (and everything works). However, when doing the same towards an https address, the module uses "https_proxy" (as expected), but it seems "no_proxy" settings aren't used. SO far I have no solution or workaround.