Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created October 20, 2014 17:33
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 peterbe/2a8d467f1bcde6569d69 to your computer and use it in GitHub Desktop.
Save peterbe/2a8d467f1bcde6569d69 to your computer and use it in GitHub Desktop.
"Copy as cURL" in Firefox 34.
curl 'http://balrog/api/rules' -H 'Host: balrog-ui' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'DNT: 1' -H 'Content-Type: application/json;charset=utf-8' -H 'Referer: http://balrog-ui/rules' -H 'Content-Length: 379' -H 'Cookie: session="1S5DytvH4WpyGhJmdudKXkVSrSM=?csrf=UydmZWY2OWVmNjkxZTgwN2JhNTJkZmMzNWNlODA0MDJmYzhmMWY4NWI0JwpwMQou"' -H 'Authorization: Basic YWRta...redacted...YWRtaW4=' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment