“Accept” header in HTTP request for DOI Content NegotiationHeader and footer banners in Slide Show styleUsing GatherBy with a DataSet's header designation instead of FirstHow to place a Tagging Rule in the Page HeaderHTTP Status Code 403Why POST be replaced by GET in HTTP request?APIFunction can not access HTTP request body when used with URLDispatcherWho is to blame: parsing UTF8 encoded JSON HTTPResponse failsURLRead ignores content-encoding:gzip headerAPI HTTP Request Signing using base64 encoding/decoding and HMAC (Cryptocurrencies Exchange, GDAX)How to get URL request response in Mathematica?
PhD: When to quit and move on?
Is reasonable to assume that the 食 in 月食/日食 can be interpreted as the sun/moon being "eaten" during an eclipse?
What's the big deal about the Nazgûl losing their horses?
Can a USB hub be used to access a drive from two devices?
How predictable is $RANDOM really?
I'm feeling like my character doesn't fit the campaign
Linear transformations and eigen values
Shipped package arrived - didn't order, possible scam?
Is it acceptable that I plot a time-series figure with years increasing from right to left?
Why would "dead languages" be the only languages that spells could be written in?
Why do Klingons use cloaking devices?
How to play a D major chord lower than the open E major chord on guitar?
Chilling juice in copper vessel
Is this standard Japanese employment negotiations, or am I missing something?
How important is it for multiple POVs to run chronologically?
Taking advantage when HR forgets to communicate the rules
How to deal with a Murder Hobo Paladin?
Multi-user CRUD: Valid, Problem, or Error?
Did Stalin kill all Soviet officers involved in the Winter War?
Do I need transit visa for Dublin?
SOQL Query (or other means) to get the icon assigned to an object
How did the IEC decide to create kibibytes?
In the Seventh Seal why does Death let the chess game happen?
Why does this function pointer assignment work when assigned directly but not with the conditional operator?
“Accept” header in HTTP request for DOI Content Negotiation
Header and footer banners in Slide Show styleUsing GatherBy with a DataSet's header designation instead of FirstHow to place a Tagging Rule in the Page HeaderHTTP Status Code 403Why POST be replaced by GET in HTTP request?APIFunction can not access HTTP request body when used with URLDispatcherWho is to blame: parsing UTF8 encoded JSON HTTPResponse failsURLRead ignores content-encoding:gzip headerAPI HTTP Request Signing using base64 encoding/decoding and HMAC (Cryptocurrencies Exchange, GDAX)How to get URL request response in Mathematica?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
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
web-access headers http-functions
$endgroup$
add a comment |
$begingroup$
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
web-access headers http-functions
$endgroup$
add a comment |
$begingroup$
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
web-access headers http-functions
$endgroup$
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
web-access headers http-functions
web-access headers http-functions
edited 8 hours ago
rhermans
22.3k4 gold badges41 silver badges107 bronze badges
22.3k4 gold badges41 silver badges107 bronze badges
asked 10 hours ago
Per AlexanderssonPer Alexandersson
1,40410 silver badges17 bronze badges
1,40410 silver badges17 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
It seems you are trying to profit from DOI Content Negotiation described here.
Content negotiation allows a user to request a particular
representation of a web resource. DOI resolvers use content
negotiation to provide different representations of metadata
associated with DOIs.
A content negotiated request to a DOI resolver is much like a standard
HTTP request, except server-driven negotiation will take place based
on the list of acceptable content types a client provides.
Making a content negotiated request requires the use of a HTTP header, "Accept".
After @Kuba's comment this works
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
URLRead[
HTTPRequest[
url
, <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex"
|>
]
, "Body"
]
]

Other content formats defined by crosscite.org are:
"RDF XML" -> "application/rdf+xml",
"RDF Turtle" -> "text/turtle",
"Citeproc JSON " -> "application/vnd.citationstyles.csl+json",
"Schema.org in JSON-LD " -> "application/vnd.schemaorg.ld+json",
"Formatted text citation " -> "text/x-bibliography",
"RIS " -> "application/x-research-info-systems",
"BibTeX " -> "application/x-bibtex",
"CrossRef Unixref XML " -> "application/vnd.crossref.unixref+xml",
"DataCite XML " -> "application/vnd.datacite.datacite+xml",
"ONIX for DOI " -> "application/vnd.medra.onixdoi+xml"
I wasn't aware of that capability, so my first approach (A bit convoluted) was to parse the HTML of the journal website.
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
Import[
Echo@StringJoin[
"https:",
First@Select[
ImportString[
URLRead[HTTPRequest[url], "Body"]
, "HTML", "Hyperlinks"
], StringContainsQ[#, "format=bibtex"] &, 1]]
, "String"
]
]
This obviously will only work when the DOI link redirects to a journal website with a particular link structure. Notice that the BibTeX content is different.

$endgroup$
add a comment |
$begingroup$
request =
HTTPRequest[
URL["https://doi.org/10.1007/s00209-015-1612-7"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleBlasiak_2016,
doi = 10.1007/s00209-015-1612-7,
url = https://doi.org/10.1007%2Fs00209-015-1612-7,
year = 2016,
month = jan,
publisher = Springer Science and Business Media LLC,
volume = 283,
number = 1-2,
pages = 601--628,
author = Jonah Blasiak,
title = Haglund's conjecture on 3-column Macdonald polynomials,
journal = Mathematische Zeitschrift
*)
request =
HTTPRequest[
URL["https://doi.org/10.1090/s0002-9947-96-01558-9"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleFomin_1996,
doi = 10.1090/s0002-9947-96-01558-9,
url = https://doi.org/10.1090%2Fs0002-9947-96-01558-9,
year = 1996,
month = sep,
publisher = American Mathematical Society (AMS),
volume = 348,
number = 09,
pages = 3591--3621,
author = Sergey Fomin and Anatol N. Kirillov,
journal = Transactions of the American Mathematical Society
* )
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201541%2faccept-header-in-http-request-for-doi-content-negotiation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
It seems you are trying to profit from DOI Content Negotiation described here.
Content negotiation allows a user to request a particular
representation of a web resource. DOI resolvers use content
negotiation to provide different representations of metadata
associated with DOIs.
A content negotiated request to a DOI resolver is much like a standard
HTTP request, except server-driven negotiation will take place based
on the list of acceptable content types a client provides.
Making a content negotiated request requires the use of a HTTP header, "Accept".
After @Kuba's comment this works
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
URLRead[
HTTPRequest[
url
, <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex"
|>
]
, "Body"
]
]

Other content formats defined by crosscite.org are:
"RDF XML" -> "application/rdf+xml",
"RDF Turtle" -> "text/turtle",
"Citeproc JSON " -> "application/vnd.citationstyles.csl+json",
"Schema.org in JSON-LD " -> "application/vnd.schemaorg.ld+json",
"Formatted text citation " -> "text/x-bibliography",
"RIS " -> "application/x-research-info-systems",
"BibTeX " -> "application/x-bibtex",
"CrossRef Unixref XML " -> "application/vnd.crossref.unixref+xml",
"DataCite XML " -> "application/vnd.datacite.datacite+xml",
"ONIX for DOI " -> "application/vnd.medra.onixdoi+xml"
I wasn't aware of that capability, so my first approach (A bit convoluted) was to parse the HTML of the journal website.
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
Import[
Echo@StringJoin[
"https:",
First@Select[
ImportString[
URLRead[HTTPRequest[url], "Body"]
, "HTML", "Hyperlinks"
], StringContainsQ[#, "format=bibtex"] &, 1]]
, "String"
]
]
This obviously will only work when the DOI link redirects to a journal website with a particular link structure. Notice that the BibTeX content is different.

$endgroup$
add a comment |
$begingroup$
It seems you are trying to profit from DOI Content Negotiation described here.
Content negotiation allows a user to request a particular
representation of a web resource. DOI resolvers use content
negotiation to provide different representations of metadata
associated with DOIs.
A content negotiated request to a DOI resolver is much like a standard
HTTP request, except server-driven negotiation will take place based
on the list of acceptable content types a client provides.
Making a content negotiated request requires the use of a HTTP header, "Accept".
After @Kuba's comment this works
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
URLRead[
HTTPRequest[
url
, <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex"
|>
]
, "Body"
]
]

Other content formats defined by crosscite.org are:
"RDF XML" -> "application/rdf+xml",
"RDF Turtle" -> "text/turtle",
"Citeproc JSON " -> "application/vnd.citationstyles.csl+json",
"Schema.org in JSON-LD " -> "application/vnd.schemaorg.ld+json",
"Formatted text citation " -> "text/x-bibliography",
"RIS " -> "application/x-research-info-systems",
"BibTeX " -> "application/x-bibtex",
"CrossRef Unixref XML " -> "application/vnd.crossref.unixref+xml",
"DataCite XML " -> "application/vnd.datacite.datacite+xml",
"ONIX for DOI " -> "application/vnd.medra.onixdoi+xml"
I wasn't aware of that capability, so my first approach (A bit convoluted) was to parse the HTML of the journal website.
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
Import[
Echo@StringJoin[
"https:",
First@Select[
ImportString[
URLRead[HTTPRequest[url], "Body"]
, "HTML", "Hyperlinks"
], StringContainsQ[#, "format=bibtex"] &, 1]]
, "String"
]
]
This obviously will only work when the DOI link redirects to a journal website with a particular link structure. Notice that the BibTeX content is different.

$endgroup$
add a comment |
$begingroup$
It seems you are trying to profit from DOI Content Negotiation described here.
Content negotiation allows a user to request a particular
representation of a web resource. DOI resolvers use content
negotiation to provide different representations of metadata
associated with DOIs.
A content negotiated request to a DOI resolver is much like a standard
HTTP request, except server-driven negotiation will take place based
on the list of acceptable content types a client provides.
Making a content negotiated request requires the use of a HTTP header, "Accept".
After @Kuba's comment this works
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
URLRead[
HTTPRequest[
url
, <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex"
|>
]
, "Body"
]
]

Other content formats defined by crosscite.org are:
"RDF XML" -> "application/rdf+xml",
"RDF Turtle" -> "text/turtle",
"Citeproc JSON " -> "application/vnd.citationstyles.csl+json",
"Schema.org in JSON-LD " -> "application/vnd.schemaorg.ld+json",
"Formatted text citation " -> "text/x-bibliography",
"RIS " -> "application/x-research-info-systems",
"BibTeX " -> "application/x-bibtex",
"CrossRef Unixref XML " -> "application/vnd.crossref.unixref+xml",
"DataCite XML " -> "application/vnd.datacite.datacite+xml",
"ONIX for DOI " -> "application/vnd.medra.onixdoi+xml"
I wasn't aware of that capability, so my first approach (A bit convoluted) was to parse the HTML of the journal website.
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
Import[
Echo@StringJoin[
"https:",
First@Select[
ImportString[
URLRead[HTTPRequest[url], "Body"]
, "HTML", "Hyperlinks"
], StringContainsQ[#, "format=bibtex"] &, 1]]
, "String"
]
]
This obviously will only work when the DOI link redirects to a journal website with a particular link structure. Notice that the BibTeX content is different.

$endgroup$
It seems you are trying to profit from DOI Content Negotiation described here.
Content negotiation allows a user to request a particular
representation of a web resource. DOI resolvers use content
negotiation to provide different representations of metadata
associated with DOIs.
A content negotiated request to a DOI resolver is much like a standard
HTTP request, except server-driven negotiation will take place based
on the list of acceptable content types a client provides.
Making a content negotiated request requires the use of a HTTP header, "Accept".
After @Kuba's comment this works
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
URLRead[
HTTPRequest[
url
, <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex"
|>
]
, "Body"
]
]

Other content formats defined by crosscite.org are:
"RDF XML" -> "application/rdf+xml",
"RDF Turtle" -> "text/turtle",
"Citeproc JSON " -> "application/vnd.citationstyles.csl+json",
"Schema.org in JSON-LD " -> "application/vnd.schemaorg.ld+json",
"Formatted text citation " -> "text/x-bibliography",
"RIS " -> "application/x-research-info-systems",
"BibTeX " -> "application/x-bibtex",
"CrossRef Unixref XML " -> "application/vnd.crossref.unixref+xml",
"DataCite XML " -> "application/vnd.datacite.datacite+xml",
"ONIX for DOI " -> "application/vnd.medra.onixdoi+xml"
I wasn't aware of that capability, so my first approach (A bit convoluted) was to parse the HTML of the journal website.
With[url = URL["https://doi.org/10.1007/s00209-015-1612-7"],
Import[
Echo@StringJoin[
"https:",
First@Select[
ImportString[
URLRead[HTTPRequest[url], "Body"]
, "HTML", "Hyperlinks"
], StringContainsQ[#, "format=bibtex"] &, 1]]
, "String"
]
]
This obviously will only work when the DOI link redirects to a journal website with a particular link structure. Notice that the BibTeX content is different.

edited 6 hours ago
answered 9 hours ago
rhermansrhermans
22.3k4 gold badges41 silver badges107 bronze badges
22.3k4 gold badges41 silver badges107 bronze badges
add a comment |
add a comment |
$begingroup$
request =
HTTPRequest[
URL["https://doi.org/10.1007/s00209-015-1612-7"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleBlasiak_2016,
doi = 10.1007/s00209-015-1612-7,
url = https://doi.org/10.1007%2Fs00209-015-1612-7,
year = 2016,
month = jan,
publisher = Springer Science and Business Media LLC,
volume = 283,
number = 1-2,
pages = 601--628,
author = Jonah Blasiak,
title = Haglund's conjecture on 3-column Macdonald polynomials,
journal = Mathematische Zeitschrift
*)
request =
HTTPRequest[
URL["https://doi.org/10.1090/s0002-9947-96-01558-9"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleFomin_1996,
doi = 10.1090/s0002-9947-96-01558-9,
url = https://doi.org/10.1090%2Fs0002-9947-96-01558-9,
year = 1996,
month = sep,
publisher = American Mathematical Society (AMS),
volume = 348,
number = 09,
pages = 3591--3621,
author = Sergey Fomin and Anatol N. Kirillov,
journal = Transactions of the American Mathematical Society
* )
$endgroup$
add a comment |
$begingroup$
request =
HTTPRequest[
URL["https://doi.org/10.1007/s00209-015-1612-7"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleBlasiak_2016,
doi = 10.1007/s00209-015-1612-7,
url = https://doi.org/10.1007%2Fs00209-015-1612-7,
year = 2016,
month = jan,
publisher = Springer Science and Business Media LLC,
volume = 283,
number = 1-2,
pages = 601--628,
author = Jonah Blasiak,
title = Haglund's conjecture on 3-column Macdonald polynomials,
journal = Mathematische Zeitschrift
*)
request =
HTTPRequest[
URL["https://doi.org/10.1090/s0002-9947-96-01558-9"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleFomin_1996,
doi = 10.1090/s0002-9947-96-01558-9,
url = https://doi.org/10.1090%2Fs0002-9947-96-01558-9,
year = 1996,
month = sep,
publisher = American Mathematical Society (AMS),
volume = 348,
number = 09,
pages = 3591--3621,
author = Sergey Fomin and Anatol N. Kirillov,
journal = Transactions of the American Mathematical Society
* )
$endgroup$
add a comment |
$begingroup$
request =
HTTPRequest[
URL["https://doi.org/10.1007/s00209-015-1612-7"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleBlasiak_2016,
doi = 10.1007/s00209-015-1612-7,
url = https://doi.org/10.1007%2Fs00209-015-1612-7,
year = 2016,
month = jan,
publisher = Springer Science and Business Media LLC,
volume = 283,
number = 1-2,
pages = 601--628,
author = Jonah Blasiak,
title = Haglund's conjecture on 3-column Macdonald polynomials,
journal = Mathematische Zeitschrift
*)
request =
HTTPRequest[
URL["https://doi.org/10.1090/s0002-9947-96-01558-9"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleFomin_1996,
doi = 10.1090/s0002-9947-96-01558-9,
url = https://doi.org/10.1090%2Fs0002-9947-96-01558-9,
year = 1996,
month = sep,
publisher = American Mathematical Society (AMS),
volume = 348,
number = 09,
pages = 3591--3621,
author = Sergey Fomin and Anatol N. Kirillov,
journal = Transactions of the American Mathematical Society
* )
$endgroup$
request =
HTTPRequest[
URL["https://doi.org/10.1007/s00209-015-1612-7"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleBlasiak_2016,
doi = 10.1007/s00209-015-1612-7,
url = https://doi.org/10.1007%2Fs00209-015-1612-7,
year = 2016,
month = jan,
publisher = Springer Science and Business Media LLC,
volume = 283,
number = 1-2,
pages = 601--628,
author = Jonah Blasiak,
title = Haglund's conjecture on 3-column Macdonald polynomials,
journal = Mathematische Zeitschrift
*)
request =
HTTPRequest[
URL["https://doi.org/10.1090/s0002-9947-96-01558-9"], <|
"Method" -> "GET",
"Headers" -> "Accept" -> "application/x-bibtex",
"ContentType" -> "application/x-bibtex"|>];
URLRead[request, "Body"]
(*
@articleFomin_1996,
doi = 10.1090/s0002-9947-96-01558-9,
url = https://doi.org/10.1090%2Fs0002-9947-96-01558-9,
year = 1996,
month = sep,
publisher = American Mathematical Society (AMS),
volume = 348,
number = 09,
pages = 3591--3621,
author = Sergey Fomin and Anatol N. Kirillov,
journal = Transactions of the American Mathematical Society
* )
answered 8 hours ago
Rohit NamjoshiRohit Namjoshi
1,9281 gold badge4 silver badges16 bronze badges
1,9281 gold badge4 silver badges16 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201541%2faccept-header-in-http-request-for-doi-content-negotiation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown