2

I have java application server (JBoss). I deployed servlet which address is: http://localhost:8080/Generate/Pdf. How can I run it from bash? How can I pass parameters to run?

4

3 回答 3

4

使用curl

$ curl http://localhost:8080/GeneratePdf

如果要传递参数,我们必须更多地了解 servlet 接受什么。

于 2013-07-05T12:40:49.833 回答
1

使用 curl 从命令行执行 http 请求

于 2013-07-05T12:40:42.933 回答
1

或者您可以简单地使用wget

wget http://localhost:8080/GeneratePdf -O path/to/output-file.pdf
于 2013-07-06T01:49:35.097 回答