[英]How to running JSP on remote computer
Assume there is a tomcat apache server on http://192.168.1.10:8443/sample.jsp which is print a result on the page. 假设在http://192.168.1.10:8443/sample.jsp上有一个tomcat apache服务器,该服务器将在页面上打印结果。
How can we get that result in a script from command line or command line browsers like elinks from another computer? 我们如何从命令行或命令行浏览器(如来自另一台计算机的elink)的脚本中获得结果? No matter is this a bash script, php script or a python one. 不管是bash脚本,php脚本还是python脚本。
I used python script with requests and re modules for fetching the page source, but there's no success! 我使用带有请求和re模块的python脚本来获取页面源,但是没有成功!
One option is 一种选择是
curl http://192.168.1.10:8443/sample.jsp > local_file_name.txt
Numerous others are available as well. 还有许多其他可用的。 Which one to choose it up to you, and the best option determines what you'd like to do with the result. 哪一个取决于您,最好的选择决定您要对结果做什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.