Skip to content

Instantly share code, notes, and snippets.

@rossmounce
Created February 11, 2014 17:24
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 rossmounce/8939587 to your computer and use it in GitHub Desktop.
Save rossmounce/8939587 to your computer and use it in GitHub Desktop.
Content Negotiation, example of Internal Server Error
curl -g --location --header 'Accept: application/x-bibtex' "http://dx.doi.org/10.1651/0278-0372(2005)025[0159:GR]2.0.CO;2" > test.txt
RETURNS
<h1>Internal Server Error</h1>
(I've encountered about 91 DOIs that appear to give this error)
@gbilder
Copy link

gbilder commented Feb 11, 2014

Prob is with bibtex transform. Other representations should work. See below. Rewritten proxy will be out on Friday that fixes bibtex issues.

curl -g --location --header 'Accept: application/vnd.crossref.unixref+xml' "http://dx.doi.org/10.1651/0278-0372(2005)025[0159:GR]2.0.CO;2" > text.txt

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