Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Last active December 11, 2015 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcolazurdo/4567369 to your computer and use it in GitHub Desktop.
Save pcolazurdo/4567369 to your computer and use it in GitHub Desktop.
The following Javascript piece allows to write to browser console a sample CURL instruction for filling out a specific form -- thanks to fcingolani
console.log('curl -vv --data "' + $('input').map(function (){ return this.name + '=' + this.value }).toArray().join('&') + '" ' + document.location.href)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment