There are several things to consider when using web requests:
1.Plain IP addresses (for example, 132.13.55.11) do not work; you should use a domain or localhost.
2.Check the firewall.
3.Webrequests do not work in backtesting.