I think I figured it out. Thanks for the quick response!
Being behind a firewall with no internal DNS server, the script was unable to resolve any addresses and therefore just gave up. If I look up the IP address for any site and use it instead everything works great.
Thanks for the hint I needed!