单击bash中的webform按钮

时间:2012-08-01 21:22:22

标签: bash curl

我正在尝试从bash脚本“点击”网页上的按钮。有人告诉我尝试使用卷曲,但我无法弄明白。我不需要填写任何输入信息,只需模拟导航到页面并单击按钮(登录也是必要的)。

这是formfind的输出:

server:$ ~/formfind < ./site.html 
--- FORM report. Uses GET to URL "/view/job/26/search/"
Input: NAME="q" VALUE="search" (TEXT)
--- end of FORM
--- FORM report. Uses POST to URL "Job/pass"
Button: "Execute" (SUBMIT)
--- end of FORM
--- FORM report. Uses POST to URL "Job/fail"
Button: "Execute" (SUBMIT)
--- end of FORM

我正在尝试单击“通过”或“失败”下的“执行”按钮

1 个答案:

答案 0 :(得分:0)

你需要这个:https://superuser.com/questions/149329/what-is-the-curl-command-line-syntax-to-do-a-post-request

使用网络检查员或代理检查确切的发送内容。