Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using curl in your example #6

Open
mmynsted opened this issue Dec 9, 2017 · 2 comments
Open

Using curl in your example #6

mmynsted opened this issue Dec 9, 2017 · 2 comments

Comments

@mmynsted
Copy link

mmynsted commented Dec 9, 2017

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.

@vojkny
Copy link

vojkny commented Apr 6, 2018

For me, it was just sufficient to add the -H Content-Type...

@oupala
Copy link

oupala commented Dec 14, 2018

This was useful to me!

I was using this docker image: aquavitae/weasyprint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants