is it going via a different route on your network? are you using a proxy either in IE or in your script (indirectly, by having http_proxy or such environment variable set)? Apart from those networking type things I would run Ethereal or other such network sniffer and watch the conversations to see what's happening vs the same download via IE.