Skip Menu |

This queue is for tickets about the Weather-NWS CPAN distribution.

Report information
The Basics
Id: 71371
Status: new
Priority: 0/
Queue: Weather-NWS

People
Owner: Nobody in particular
Requestors: vargok [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Updated URL for NWS Service
Date: Fri, 30 Sep 2011 09:33:01 -0700 (PDT)
To: "bug-Weather-NWS [...] rt.cpan.org" <bug-Weather-NWS [...] rt.cpan.org>
From: Kevin Vargo <vargok [...] yahoo.com>
Hello,   Looks like NWS have updated their URL for this service, and providing a hard 301.  Something in the following of that redirect is improperly double-encoding params, causing service to fail.  For instance, I'm seeing this as evidenced by an error result of: XML: <error><h2>ERROR</h2><pre>bad format "24%20hourly" input</pre></error> When I print out the generated URL, and try it in my browser, I see the double-encoding ('%' becomes '%25' so what should be '%20' becomes '%2520'), fix it manually and it works.  Tracking this back into the code looks to be a trivial change: around line 336 of Weather/NWS/NDFDgenByDay.pm:         my $url = - 'http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?'; + 'http://graphical.weather.gov/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?'; From: Weather::NWS::NDFDgen - Object interface to the NWS NDFDgen Web Service. =head1 VERSION Version 0.02 Let me know if I can be of further assistance. Kevin