I am trying to get the .bib info from a DOI, following the guide here.
Basically, I wish to run
curl -LH "Accept: application/x-bibtex" http://dx.doi.org/10.1016/j.algal.2015.04.001
to define an "Accept"
header with content "application/x-bibtex"
.
With Mathematica. I try
URLRead[HTTPRequest[URL["https://doi.org/10.1007/s00209-015-1612-7"],
<| "Method" -> "GET",
"Headers" -> {"Accept: application/x-bibtex"},
"ContentType" -> "application/x-bibtex"|>]]
but this fails, with error message
"Message text not found -- ({Accept: application/x-bibtex}"
The output I expect is a string, with the contents:
@article{Kouhia_2015,
doi = {10.1016/j.algal.2015.04.001},
url = {http://dx.doi.org/10.1016/j.algal.2015.04.001},
year = 2015,
month = {jul},
publisher = {Elsevier {BV}},
volume = {10},
pages = {41--47},
author = {Mikko Kouhia and Henrik Holmberg and Pekka Ahtila},
title = {Microalgae-utilizing biorefinery concept for pulp and paper industry: Converting secondary streams into value-added products},
journal = {Algal Research}
EDIT: I also want this to work with other journals. curl
can handle that as well, as there seem to be a standard to request this particular format.
curl -LH "Accept: application/x-bibtex" https://doi.org/10.1090/s0002-9947-96-01558-9