脚本编写HTTP更有效 [英] Scripting HTTP more effeciently
问题描述
我经常想要自动化http查询。我目前使用Java(和commons http客户端),但可能更喜欢基于脚本的方法。一些非常快速和简单的东西。在哪里我可以设置标题,转到页面而不用担心设置整个OO生命周期,设置每个标题,调用html解析器......我正在寻找任何语言的解决方案,更喜欢脚本
Often times I want to automate http queries. I currently use Java(and commons http client), but would probably prefer a scripting based approach. Something really quick and simple. Where I can set a header, go to a page and not worry about setting up the entire OO lifecycle, setting each header, calling up an html parser... I am looking for a solution in ANY language, preferable scripting
推荐答案
查看 Selenium 。如果您需要自定义脚本,它会为C#,Java,Perl,PHP,Python和Ruby生成代码。
Have a look at Selenium. It generates code for C#, Java, Perl, PHP, Python, and Ruby if you need to customize the script.
这篇关于脚本编写HTTP更有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!