Re: NSURLRequest returning bizarre page
Re: NSURLRequest returning bizarre page
- Subject: Re: NSURLRequest returning bizarre page
- From: Greg Parker <email@hidden>
- Date: Tue, 11 Jun 2013 12:04:30 -0700
On Jun 10, 2013, at 5:32 PM, Trygve Inda <email@hidden> wrote:
> http://www.celestrak.com/NORAD/elements/stations.txt
The JavaScript redirect you showed earlier appears to be that server's broken attempt to display a "page not found" error. Note the Content-Location header with "404" in it.
Perhaps the file you want is temporarily absent from the server sometimes, when the data is updated or something.
% curl -i http://www.celestrak.com/NORAD/elements/this-is-a-fake-file-name.txt
HTTP/1.1 200 OK
Content-Length: 481
Content-Type: text/html
Content-Location: http://www.celestrak.com/redirect.htm?404;http://www.celestrak.com:80/NORAD/elements/this-is-a-fake-file-name.txt
Last-Modified: Fri, 10 Sep 2004 21:40:52 GMT
Accept-Ranges: bytes
ETag: "d4cf1fd87e97c41:257"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Tue, 11 Jun 2013 19:01:40 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="javascript">
var loc = escape(document.location.href);
//var ref = escape(document.referrer);
var newLoc = "/redirect.asp?loc=" + loc;
window.location.href(newLoc);
</script>
</head>
<body>
</body>
</html>
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden