Skip to content

Instantly share code, notes, and snippets.

@jacobwegner
Last active June 22, 2023 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobwegner/f82c09b002ad020f1e611f12d227a5ae to your computer and use it in GitHub Desktop.
Save jacobwegner/f82c09b002ad020f1e611f12d227a5ae to your computer and use it in GitHub Desktop.
Scaife Viewer passage request headers
  1. Fetching urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17 via CURL and inspecting headers:
 curl https://scaife.perseus.org/library/passage/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17/json/ --verbose >> /dev/null

returns:

< HTTP/1.1 200 OK
< Connection: keep-alive
< Server: gunicorn/19.9.0
< Date: Thu, 22 Jun 2023 16:38:32 GMT
< Content-Type: application/json
< Link: </reader/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:18/>; rel="next"; urn="urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:18"
< Last-Modified: Mon, 19 Jun 2023 23:09:02 GMT
< Content-Length: 44206
< Vary: Origin
< Via: 1.1 vegur

Within Link: rel="next", urn="urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:18".

  1. Fetching urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:18 via CURL and inspecting headers:
 curl https://scaife.perseus.org/library/passage/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:18/json/ --verbose >> /dev/null

returns:

< HTTP/1.1 200 OK
< Connection: keep-alive
< Server: gunicorn/19.9.0
< Date: Thu, 22 Jun 2023 16:40:55 GMT
< Content-Type: application/json
< Link: </reader/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17/>; rel="prev"; urn="urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17", </reader/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:19/>; rel="next"; urn="urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:19"
< Last-Modified: Mon, 19 Jun 2023 23:09:02 GMT
< Content-Length: 62521
< Vary: Origin
< Via: 1.1 vegur

Within Link: rel="prev", urn="urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17" and rel="next"; urn="urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:19"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment