Difference between revisions of "Help:Linking to Bitsavers"

From Computer History Wiki
Jump to: navigation, search
(Redirector not needed?)
m (+cat)
Line 16: Line 16:
 
   http://bitsavers.org/pdf/dec/pdp11/1145/EK-KB11A-MM-004_Aug76.pdf
 
   http://bitsavers.org/pdf/dec/pdp11/1145/EK-KB11A-MM-004_Aug76.pdf
 
  (Therefore, link to http://toresbe.dreamhosters.com/redirect.php?res=bitsavers&doc=''path to document''
 
  (Therefore, link to http://toresbe.dreamhosters.com/redirect.php?res=bitsavers&doc=''path to document''
 +
 +
[[Category: Help]]

Revision as of 01:47, 8 October 2019

Bitsavers is a popular and widely used resource. However, it has become something of a victim of its own success. The site is noticably very slow. Therefore, I've written something of a load balancer. So if you're going to link to bitsavers please use the redirect.php script.

(I'm not sure this is still necessary. Bitsavers has its own redirector now. Jnc (talk) 15:00, 22 October 2017 (CEST))

(I'll put some more meat on this article soon, so for now I'm just pasting in the documentation from the script verbatim)

Usage: redirect.php?doc=(filename)&res=(resource)
The parameters (Passed via HTTP GET) are:
res
 Specifies the resource (currently, only "bitsavers" is valid)
doc
 Specifies the file to be fetched, without the first slash.
 For example, in the case of $res=="bitsavers" and $doc=="dec/pdp11/1145/EK-KB11A-MM-004_Aug76.pdf",
 the script will redirect via the HTTP header "location" to 
  
  http://bitsavers.org/pdf/dec/pdp11/1145/EK-KB11A-MM-004_Aug76.pdf
(Therefore, link to http://toresbe.dreamhosters.com/redirect.php?res=bitsavers&doc=path to document