Skip to content

Curl

curl [options] [URL...]

standar :

curl "http://blablabla.com"

save to file :

curl -o tes.txt "http://halo.com"
curl -O "http://halo.com"

show header :

curl -I "http://halo.com"

ganti user agent :

curl -A "haloo web browser" -v "http://halo.com"

kirim form :

curl -X "POST" -d "username=admin&password=pass" "http://halo.com/index.php?id=10"

cookie :

curl --cookie "name=Daniel" http://www.example.com