in reply to Re: Another one perl LWP question
in thread Another one perl LWP question

Thanks for answer, i've changed 'https' to 'http', 'ftp' at this line $ua->proxy('https', $proxy);

and it worked!!! But why 'https' works for the http://www.example.com/bar though it doesnt work for the desired one URL. As i understand this is connection to proxy but not to the web site. I've changed the connection to proxy (which was actually working for the example site) without changing access to the sci-hub and it worked. I can't see any logic here - what the problem?

Replies are listed 'Best First'.
Re^3: Another one perl LWP question
by marinersk (Priest) on Jul 04, 2015 at 02:10 UTC

    In this case, httpworks and httpsdoesn't because the proxycall is establishing which kinds of connections it is supposed to handle for you, and you are making an httpcall.

    At a guess to your other example, perhaps that one is getting converted to an httpscall behind the scenes, thus enabling your proxycall to handle it?.