You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the website is suddenly really particular about headers. I basically just copied all the headers my browser was using, and turned it into a request in elixir. I eventually cut it down to just the User-Agent header, and it still worked. The book should probably update to include the needed header. As for now, this worked using :httpc.request/4 (I just put in the url for the station "KSJC" in this instance):
:httpc.request(:get,
{'http://w1.weather.gov/xml/current_obs/KSJC.xml',
[ {'User-Agent','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'} ]}, [], [])
Études 12-1, 12-2 and 12-3 can't be completed anymore. The server at NOAA returns a 403 now.
The text was updated successfully, but these errors were encountered: