Compare commits

...

3 Commits
v1.0 ... master

Author SHA1 Message Date
14ef08503f Allow override to arbitrary Content-Type 2022-03-29 13:28:40 +01:00
8549c30e10
Merge pull request #2 from mimoto/master
Update mime type
2022-03-29 13:23:41 +01:00
Pete Birkinshaw
dcc6918a03
Update mime type
Of course the question now is: does Microsoft use the right mime type?
2018-02-07 10:37:13 +00:00
2 changed files with 3 additions and 2 deletions

View File

@ -27,4 +27,5 @@ URL=https://idp.example.com/idp/profile/SAML2/SOAP/ECP \
bash test.sh | xmllint --pretty 1 - bash test.sh | xmllint --pretty 1 -
``` ```
You can also override the HTTP `Content-Type` in the request by setting
`CONTENT_TYPE` environment variables.

View File

@ -24,6 +24,6 @@ echo $REQUEST | xmllint --pretty 1 -
echo $REQUEST | echo $REQUEST |
curl -k \ curl -k \
-d @- \ -d @- \
-H "Content-Type: application/vnd.paos+xml" \ -H "Content-Type: ${CONTENT_TYPE:-text/xml}" \
--basic -u $CRED \ --basic -u $CRED \
$URL $URL