The website CERMINE has provided REST service with cURL tools. They give the following example:
curl -X POST --data-binary @article.pdf \
--header "Content-Type: application/binary"\
http://cermine.ceon.pl/extract.do
How can I convert the following into JavaScript?
Edit #1: So the fetch would look like this?
fetch("http://cermine.ceon.pl/extract.do", {
body: "@article.pdf",
headers: {
"Content-Type": "application/binary\\"
},
method: "POST"
})