latex-online icon indicating copy to clipboard operation
latex-online copied to clipboard

Allow POST requests on /compile for non-url contents

Open heytdep opened this issue 2 years ago • 1 comments

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.

heytdep avatar Apr 26 '22 18:04 heytdep

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

kpym avatar Jul 03 '22 16:07 kpym