Remove multipart response enveloppe
up vote
0
down vote
favorite
When dealing with some curl responses I sometime get multipart enveloppe:
$ curl -o output 'https://example.com/foobar/my/request' -H 'Accept: multipart/related; type="application/dicom"' -H 'Referer: https://example.com/foobar' -H 'User-Agent: mine' -H 'Authorization: Bearer 12345' --compressed
Leads to:
$ file output
output: data
where:
$ cat output
--838b4c50-b896-45b6-bbe9-aacd4b057aec
Content-ID: <4f6404e3-733e-437b-9ec9-e2e540dea8e9@resteasy-multipart>
Content-Type: application/dicom
<binary stuff removed>
--838b4c50-b896-45b6-bbe9-aacd4b057aec--[user@localhost tmp]$
Is there a command line utility to remove the multipart enveloppe ?
curl command-line binaryfiles
add a comment |
up vote
0
down vote
favorite
When dealing with some curl responses I sometime get multipart enveloppe:
$ curl -o output 'https://example.com/foobar/my/request' -H 'Accept: multipart/related; type="application/dicom"' -H 'Referer: https://example.com/foobar' -H 'User-Agent: mine' -H 'Authorization: Bearer 12345' --compressed
Leads to:
$ file output
output: data
where:
$ cat output
--838b4c50-b896-45b6-bbe9-aacd4b057aec
Content-ID: <4f6404e3-733e-437b-9ec9-e2e540dea8e9@resteasy-multipart>
Content-Type: application/dicom
<binary stuff removed>
--838b4c50-b896-45b6-bbe9-aacd4b057aec--[user@localhost tmp]$
Is there a command line utility to remove the multipart enveloppe ?
curl command-line binaryfiles
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When dealing with some curl responses I sometime get multipart enveloppe:
$ curl -o output 'https://example.com/foobar/my/request' -H 'Accept: multipart/related; type="application/dicom"' -H 'Referer: https://example.com/foobar' -H 'User-Agent: mine' -H 'Authorization: Bearer 12345' --compressed
Leads to:
$ file output
output: data
where:
$ cat output
--838b4c50-b896-45b6-bbe9-aacd4b057aec
Content-ID: <4f6404e3-733e-437b-9ec9-e2e540dea8e9@resteasy-multipart>
Content-Type: application/dicom
<binary stuff removed>
--838b4c50-b896-45b6-bbe9-aacd4b057aec--[user@localhost tmp]$
Is there a command line utility to remove the multipart enveloppe ?
curl command-line binaryfiles
When dealing with some curl responses I sometime get multipart enveloppe:
$ curl -o output 'https://example.com/foobar/my/request' -H 'Accept: multipart/related; type="application/dicom"' -H 'Referer: https://example.com/foobar' -H 'User-Agent: mine' -H 'Authorization: Bearer 12345' --compressed
Leads to:
$ file output
output: data
where:
$ cat output
--838b4c50-b896-45b6-bbe9-aacd4b057aec
Content-ID: <4f6404e3-733e-437b-9ec9-e2e540dea8e9@resteasy-multipart>
Content-Type: application/dicom
<binary stuff removed>
--838b4c50-b896-45b6-bbe9-aacd4b057aec--[user@localhost tmp]$
Is there a command line utility to remove the multipart enveloppe ?
curl command-line binaryfiles
curl command-line binaryfiles
asked Nov 9 at 13:25
malat
5,563650103
5,563650103
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2fstackoverflow.com%2fquestions%2f53226585%2fremove-multipart-response-enveloppe%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