2

Let's say I have a web page with this POST button:

<form method="post" action="somequery">
  [some parameters]
  <button type="submit"> Push me </button>
</form>

... and I want to get the curl command that produces the exact same request (including all headers) as if I pushed that button.

Firefox's Copy as cURL allows me to get the equivalent curl command, but only after I have clicked the button/link (same problem with Chrome's Copy as cURL). I can't click the button because I am testing software and clicking that button twice would result in the test not being valid.

Should work on either Firefox/Chromium/Chrome/Opera. Gratis.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.