如何使用Haskell提交html表单 [英] How to submit html form with Haskell
本文介绍了如何使用Haskell提交html表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何使用 http-conduit 软件包的simplehttp来检索来自网址的网页。现在,如果在
网页上有一个输入文本字段和一个提交按钮,该怎么办?我也可以使用http-conduit来填充该文本字段并按下按钮并检索结果页面吗?
I know how to use http-conduit package's simplehttp to retrieve a page from an URL. Now what if on that web page there is an input text field and a submit button. Can I also use http-conduit to fill that text field and push the button and retrieve the resulting page ?
推荐答案
是的,你可以使用 urlEncodedBody 或者对于多部分消息, MultipartFormData 模块。
Yes, you can use either urlEncodedBody or, for multipart messages, the MultipartFormData module.
这篇关于如何使用Haskell提交html表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文