Skip to content

Instantly share code, notes, and snippets.

@chn0905
chn0905 / curl.md
Created November 14, 2017 01:13 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@chn0905
chn0905 / gist:ba40cee1c16f34721f6f5b4e47f4acde
Created November 13, 2017 00:24 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master