POST request from Java app

0 votes
asked Jan 3 in Question / help by anonime_beginner
Can I send POST request from Java app to PlantUML server?

I know that the URL is "http://www.plantuml.com/plantuml/svg/" (yes, I want a very large diagram in SVG format).

I have used this URL to send a GET request and it worked perfectly, now that the diagram is bigger I receive the HTTP code: 400.

If this question was already asked, please send me the link to the solution.

Thank you!

1 Answer

0 votes
answered Jan 3 by Rob Oxspring
 
Best answer
Yes, you can POST raw diagrams to PlantUML Server: https://github.com/plantuml/plantuml-server/pull/74

But you'll have to run your own server since the public installation only supports GET, presumably they don't want to support super large diagrams.

Incidentally if you're only a little over the limit then running a private server will also allow you to set the PLANTUML_LIMIT_SIZE to allow bigger diagrams even with GET.
...