Actually, http://inteliplex.com/wx and http://inteliplex.com/wx/ are two different URLs. You're requesting the former, it's redirecting you to the latter. Send GET /wx/ HTTP/1.1 and all should be well.
I believe it does the redirect so that if you have relative links on the /wx/index.html page (say to test.html), they redirect consistently to /wx/test.html in all cases rather than to /test.html if the user browsed to http://inteliplex.com/wx -- make sense?
Actually, http://inteliplex.com/wx and http://inteliplex.com/wx/ are two different URLs. You're requesting the former, it's redirecting you to the latter. Send GET /wx/ HTTP/1.1 and all should be well.
I believe it does the redirect so that if you have relative links on the /wx/index.html page (say to test.html), they redirect consistently to /wx/test.html in all cases rather than to /test.html if the user browsed to http://inteliplex.com/wx -- make sense?
HTTP/1.1 307 Temporary Redirect
Date: Fri, 20 Jun 2008 20:37:58 GMT
Server: Apache
Set-Cookie: partner=www; domain=(null); path=/; Version="1";
Set-Cookie: partner_url=(null); domain=(null); path=/; Version="1";
Location: [url]http://www.weather.com/weather/map/65065[/url]
Content-Length: 443
Keep-Alive: timeout=3, max=1
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>307 Temporary Redirect</title>
</head><body>
<h1>Temporary Redirect</h1>
<p>The document has moved <a href="http://www.weather.com/weather/map/65065">here</a>.</p>
<p>Additionally, a 307 Temporary Redirect
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache Server at [url]www.weather.com[/url] Port 80</address>
</body></html>
Thanks, but I don't need the forecast, I'm trying to get the "local" radar for a specified zip code, and trying to scrape the image from returned html.
I can go ahead and scrape out the image I need if I can get to the source I see in my browser, I just think there's too much redirection going on. I want to stick with Weather.com since I think they're the most familiar and legible radar maps for the common client.
Quick update: I was finally able to find it. I had to include the "encoding" attribute, and I was then able to read the entire page and get the data I needed.
It wasn't the "encoding" (my bad), it was the "charset". After a while Googl'ing, I came across this suggestion and it sure enough worked. It was a PITA . . . I've got it all working now, except I cannot load the Alaskan Doppler radar becase, well . . . there isn't one. [EDIT: There isn't a 600 mile radar, only the 2100 - though that might be good enough.]
So, now I need to adjust it . . . ugh. Oh well, the stuff you gotta go through to do something "cool" and probably won't be used much.
Comments
I believe it does the redirect so that if you have relative links on the /wx/index.html page (say to test.html), they redirect consistently to /wx/test.html in all cases rather than to /test.html if the user browsed to http://inteliplex.com/wx -- make sense?
Jeremy
I get this . . .
Anyone? Please?
Where can I find this file?
Thanks
gary
Log into AMX.com, then go to Tech Center -> Application Files -> integration! solutions and it should be there.
http://www.srh.noaa.gov/ridge/lite/
Click on a radar image type and then select an area from the list. Here's some snipets of code to help you figure out what your looking at.
I never quite finished this module and I intended on making every radar site in the US available. I did finish the Satellite portion, I think?
I can go ahead and scrape out the image I need if I can get to the source I see in my browser, I just think there's too much redirection going on. I want to stick with Weather.com since I think they're the most familiar and legible radar maps for the common client.
Thanks though!!!
Thanks . . . actually, let me show you what I had to send:
It wasn't the "encoding" (my bad), it was the "charset". After a while Googl'ing, I came across this suggestion and it sure enough worked. It was a PITA . . . I've got it all working now, except I cannot load the Alaskan Doppler radar becase, well . . . there isn't one. [EDIT: There isn't a 600 mile radar, only the 2100 - though that might be good enough.]
So, now I need to adjust it . . . ugh. Oh well, the stuff you gotta go through to do something "cool" and probably won't be used much.