Website responding to HTTP “Accept:” in request headers with MIME responses? Announcing...
Coloring maths inside a tcolorbox
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
How widely used is the term Treppenwitz? Is it something that most Germans know?
How can I make names more distinctive without making them longer?
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
Identify plant with long narrow paired leaves and reddish stems
3 doors, three guards, one stone
Why aren't air breathing engines used as small first stages
How do I stop a creek from eroding my steep embankment?
What is the role of the transistor and diode in a soft start circuit?
List of Python versions
In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?
Fundamental Solution of the Pell Equation
Generate an RGB colour grid
Short Story with Cinderella as a Voo-doo Witch
51k Euros annually for a family of 4 in Berlin: Is it enough?
Why did the IBM 650 use bi-quinary?
List *all* the tuples!
Why did the rest of the Eastern Bloc not invade Yugoslavia?
Single word antonym of "flightless"
String `!23` is replaced with `docker` in command line
What is a non-alternating simple group with big order, but relatively few conjugacy classes?
How come Sam didn't become Lord of Horn Hill?
Can a non-EU citizen traveling with me come with me through the EU passport line?
Website responding to HTTP “Accept:” in request headers with MIME responses?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)HTTP responses curl and wget different resultsCan't copy website with curlSend HTTP request with parameters fileReasons why curl and http request produce different responsesjq filtering curl- 'Cannot index number with string'HTTP Request linePostman: Invalid CORS RequestWhat is the reassembly path of a HTTP response?Is there a builtin webserver on Windows that can serve a known-named HTTP resource?One HTTP request, two responses?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I want to demo test the effect of various Accept:
options in a HTTP request, e.g.
curl -H "Accept: application/pdf" -X GET http://hostname/resource
curl -H "Accept: application/json" -X GET http://hostname/resource
Is there a site on public internet that will give me back PDF or JSON, etc depending on the headers ?
http curl mime-types mime-headers
New contributor
add a comment |
I want to demo test the effect of various Accept:
options in a HTTP request, e.g.
curl -H "Accept: application/pdf" -X GET http://hostname/resource
curl -H "Accept: application/json" -X GET http://hostname/resource
Is there a site on public internet that will give me back PDF or JSON, etc depending on the headers ?
http curl mime-types mime-headers
New contributor
add a comment |
I want to demo test the effect of various Accept:
options in a HTTP request, e.g.
curl -H "Accept: application/pdf" -X GET http://hostname/resource
curl -H "Accept: application/json" -X GET http://hostname/resource
Is there a site on public internet that will give me back PDF or JSON, etc depending on the headers ?
http curl mime-types mime-headers
New contributor
I want to demo test the effect of various Accept:
options in a HTTP request, e.g.
curl -H "Accept: application/pdf" -X GET http://hostname/resource
curl -H "Accept: application/json" -X GET http://hostname/resource
Is there a site on public internet that will give me back PDF or JSON, etc depending on the headers ?
http curl mime-types mime-headers
http curl mime-types mime-headers
New contributor
New contributor
edited 18 hours ago
k1eran
New contributor
asked yesterday
k1erank1eran
1013
1013
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
k1eran is a new contributor. Be nice, and check out our Code of Conduct.
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%2fsuperuser.com%2fquestions%2f1425601%2fwebsite-responding-to-http-accept-in-request-headers-with-mime-responses%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
k1eran is a new contributor. Be nice, and check out our Code of Conduct.
k1eran is a new contributor. Be nice, and check out our Code of Conduct.
k1eran is a new contributor. Be nice, and check out our Code of Conduct.
k1eran is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- 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.
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%2fsuperuser.com%2fquestions%2f1425601%2fwebsite-responding-to-http-accept-in-request-headers-with-mime-responses%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