1

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

这是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

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

4

1 回答 1

0

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

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

于 2012-08-01T21:25:57.880 回答