Project

Profile

Help

Bug #4795

closed

Should we be following a redirection when we get HTTP response 301?

Added by Michael Kay about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Category:
Internals
Sprint/Milestone:
-
Start date:
2020-10-16
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9, trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:

Description

This arises from test case qt3extra read-binary-001 which does

saxon:read-binary-resource("http://www.saxonica.com")

This is showing a 301 error because the HTTP request responds with status 301 saying that the content has permanently moved to the equivalent HTTPS URL.

No doubt also this happens on other calls where we retrieve resources using HTTP.

Should we be following the redirect, and returning the resource found at "https://www.saxonica.com"?

Encountered on 9.9, but no doubt applies on other branches also.

Please register to edit this issue

Also available in: Atom PDF