aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
491 stars 89 forks source link

Allow POST requests on /compile for non-url contents #78

Open heytdep opened 2 years ago

heytdep commented 2 years ago

Currently, there is no way to pass the data of the text parameter in /compile with a POST request (https://latexonline.cc/compile?text={latexCode}).

This makes compiling long documents through this endpoint and without using a URL (which is not optimal when you only have user-entered input and don't want to upload it to github first for both security and optimization purposes) impossible since a 414 error (request-uri too large) is returned when trying to compile a long tex code.

Allowing also POST requests should fix this issue.

kpym commented 2 years ago

You can POST .tar archive to https://texlive2020.latexonline.cc/data. You can check this in latexonline bash script.