Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created October 20, 2014 17: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 peterbe/a67061d9c386308b2cff to your computer and use it in GitHub Desktop.
Save peterbe/a67061d9c386308b2cff to your computer and use it in GitHub Desktop.
"Copy as cURL" in Chrome 38
curl 'http://balrog/api/rules' -H 'Authorization: Basic YWRtaW....taW4=' -H 'Origin: http://balrog-ui' -H 'Accept-Encoding: gzip,deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://balrog-ui/rules' -H 'Cookie: session="YYoJ31Z3MXEDZ0TYs1lRuyZGxW0=?csrf=Uyc1ZGVkMzU2YzRkNjliODlhYWEwNGRmMzQ0MTY0YTNlNWJlNTM4NWI1JwpwMQou"' -H 'Connection: keep-alive' --data-binary '{"product":"Something","rate":10,"priority":"10","update_type":"minor","channel":"Test","mapping":"B2G-mozilla-aurora-kitkat-nightly-20140923160203","version":"1.0","build_id":"abc123","locale":"sv","dist_version":"plan 9","build_target":"1.0?","os_version":"9","header_arch":"x86","backgroundRate":10,"csrf_token":"20141020110722##ce0f8d4e21557c0db896f4e7f29026316e66d809"}' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment