↧
Answer by Lloyd S Turley for Current Observation feed from weather.gov...
This answer helped me but actually did not work. I still received the error response.I changed the Post to a Get in this line:var request = new HttpRequestMessage(HttpMethod.Post...To:var request = new...
View ArticleAnswer by pwan for Current Observation feed from weather.gov forbidden (403)
On the off chance your finding this from Étude 12-1 from Études for Elixir, here's what ended up working for me s_url = "http://w1.weather.gov/xml/current_obs/"<> weather_station <> ".xml"...
View ArticleAnswer by C.Plock for Current Observation feed from weather.gov forbidden (403)
I had the same problem but was using PowerShell. Here is a way to set User Agent by using HttpWebRequest.$weather_url = "http://w1.weather.gov/xml/current_obs/KLNK.xml"$request =...
View ArticleAnswer by R-TEC Guru for Current Observation feed from weather.gov forbidden...
That is great but you cant set "User-Agent" when you are using an XMLDocument and calling Load() Like this (this used to work): XmlDocument doc = new XmlDocument(); string stationName =...
View ArticleAnswer by Jim Speaker for Current Observation feed from weather.gov forbidden...
Contacting weather.gov resulted in a really fast response, which was:Applications accessing resources on weather.gov now need to provide a User-Agent header in any HTTP request. Requests without a user...
View ArticleCurrent Observation feed from weather.gov forbidden (403)
Weather.gov Current Observation feeds have suddenly begun to fail for all requests from an HTTPClient, and likewise I've observed that many websites across the internet that use AJAX to make calls to...
View Article