docker-weasyprint
docker-weasyprint copied to clipboard
Using curl in your example
I am using curl 7.52.1. I find that what you have in the README.md file does not work for me, but the following does.
curl -X POST \
-H Content-Type:text/html \
-T ./test.html http://127.0.0.1:5001/pdf?filename=test.pdf \
-o test.pdf
This uses -H to set the Content-Type, and -T to upload the file. Because this is an example, I added -o to store the response in a file that can be examined with a PDF reader.
For me, it was just sufficient to add the -H Content-Type...