Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作为一个宠物项目,我想构建一个从英语翻译成希伯来语的程序。我想要进行翻译的方式是使用一个名为morfix的网站。在这个网站上可以输入一个英文单词,然后按下“תרגום”(翻译)按钮,翻译就会出现。
我的第一选择是用 Java 编写这个程序,我尝试使用htmlunit,但它不起作用,因为我猜该站点使用 AJAX 来带来结果。
我可以用什么语言实现提交 Web 表单的部分?如何将 Java 与其他语言集成?
谢谢。
您需要一个 http 分析器来检查按下该按钮时发生的情况(尝试使用 Firefox 的 Live HTTp 标头)。然后,您可以使用任何语言发出 Web 请求。
您也可以在不提交表单的情况下发送您的请求:http://milon.morfix.co.il/?q=try
http://milon.morfix.co.il/?q=try