Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I plan to retrieve an rss file (xml format) with url http://alerts.weather.gov/cap/ma.php?x=0 from a web site periodically with a scheduled task. I have a php script to do that. When I access the url in IE9 it shows the RSS. When I load it with curl in the php script the request times out. In fact when I ping the host weather.gov the request times out. What about my settings could prevent access to that host from the cmd.exe window? In other words is there something that I should do to be able to ping that host from cmd.exe?

share|improve this question
    
Disable the proxy? Open the firewall for HTTP not only for the proxy? Give more information about your networks setup?! –  mailq Aug 31 '11 at 16:50
    
@mailq The firewall is already open for HTTP. The setup is just a verizon wireless router and a Windows Vista Business edition with IE9. –  user823527 Aug 31 '11 at 18:53
    
Try requesting the page with wget.exe in your command prompt. It shows errors and such and should help diagnose the problem. –  DougN Aug 31 '11 at 21:05
    
@DougN wget.exe has old dlls. Is there a different alternative to request the url? –  user823527 Sep 1 '11 at 18:09
add comment

1 Answer

Try testing connectivity to the server manually:

> telnet alerts.weather.gov 80[enter]
[SCREEN TURNS BLANK]
GET /cap/ma.php?x=0 HTTP/1.0[enter][enter]

That should produce your output. If it doesn't, you have a connectivity problem and are probably using a proxy server in ie9. If it does work, something else is wrong.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.