通过命令行 cURL 单击按钮

时间:2021-05-27 12:44:19

标签: linux curl redhat

我无法访问 https://clm.sonatype.com 网址,因为 mcAfee 页面要求我点击“我同意”按钮。

有什么办法可以使用 cURL 通过命令行点击“我同意”按钮?

curl -v --proxy xxxxxxxxxx:xxxx -U XXXXX:xxxxx --cacert clm.pem https://clm.sonatype.com

包含我同意(J'accepte)按钮的页面部分:

<table class="buttonTable">
  <form id="activateform" method="post">
  <tr>
    <td class="infoData">
<b>Accepter les conditions: </b>
    </td>
    <td class='printInfoData' text-align="left">
      <input class="button" type="button" id="activatebutton" value="J'accepte" onClick="activateSession(&quot;/mwg-internal/de5fs23hu73ds/plugin?target=QuotaPlugin&amp;quotatype=coaching&quot;,&quot;&quot;,&quot;aHR0cHM6Ly9jbG0uc29uYXR5cGUuY29tLw==&quot;); return false;">
      <br />
    </td>
  </tr>
</form>
</table>

谢谢。

0 个答案:

没有答案