[LEAPSECS] problem fetching Leap_Second_History.dat ?

Rob Seaman seaman at noao.edu
Thu Mar 26 16:37:14 EDT 2015

I can load this URL in a browser:


But PHK’s python code (which worked a couple of month’s ago):
def fetch_url(url):
	global conn

	print("Fetch", url)
	if conn == None:
		conn = httplib.HTTPConnection("hpiers.obspm.fr")
	conn.request("GET", url)
	r1 = conn.getresponse()
	if r1.status != 200:
		print (r1.status, r1.reason)

now throws an status:

	302 Found

Which is a URL redirection (nominally “moved temporarily”, which I saw yesterday evening in some browser or other).  Not obvious if a failure to handle a redirection is the same as an error, but it seems possible that this is either a symptom of something else, or if actually a new layer of indirection in getting to this file will catch some other application.

Either way this may add more weight to the notion of using DNS instead of HTTP to fetch leap second info.

Haven’t looked very far under the hood yet, so could certainly be something else entirely. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist6.pair.net/pipermail/leapsecs/attachments/20150326/7c7a83a4/attachment.html>

More information about the LEAPSECS mailing list