Data Engineering with Java & Apache Spark
Print a GET request to stdout:
curl
Save response from GET to file:
curl -o
Save response from GET while keeping the name of the online file
curl -O
POST HTML form:
curl -d “key1=value1&key2=value2” -X POST
POST JSON form:
curl -d ‘{“key1”:”value1”, “key2”:”value2”}’ -H “Content-Type: application/json” -X POST
Data can be parsed and sent from a file:
curl -d “@
" -X POST