Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: https request failing

by marto (Bishop)
on Sep 18, 2012 at 11:20 UTC ( #994263=note: print w/replies, xml ) Need Help??

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,, .<companyname>.se,
    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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994263]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-12-16 21:08 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (459 votes). Check out past polls.