Skip to content

Instantly share code, notes, and snippets.

@stianl
Created April 29, 2016 15:04
Show Gist options
  • Save stianl/ed9a114612bee0c424acaed4183d74f2 to your computer and use it in GitHub Desktop.
Save stianl/ed9a114612bee0c424acaed4183d74f2 to your computer and use it in GitHub Desktop.
Fetch HTML value with curl
# TODO: Get rid of last quotation mark output
$ curl -s http://localhost:8080/|grep -oP '_csrf" value="\K.*"'`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment