curl

How to use curl

curl -s -X POST -H "Content-Type: application/json" --data-binary @gsc-request.json \
"https://speech.googleapis.com/v1/speech:recognize?key=${API_KEY}" > task4-gcs.result

Example api doc: https://cloud.google.com/speech-to-text/docs/samples/speech-transcribe-async-gcs

curl http://download.tensorflow.org/example_images/flower_photos.tgz \
    | tar xz
curl -ks https://`kubectl get svc frontend -o=jsonpath="{.status.loadBalancer.ingress[0].ip}"`
curl -sLO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x kops-linux-amd64
mv kops-linux-amd64 $WORK_DIR/bin/kops
for ((i=1;i<=10;i++)); do echo total_time: $(echo "`curl -s -o /dev/null -w '1000*%{time_total}\n' -s http://35.232.156.42`" | bc); done

#output
total_time: 203.000
total_time: 199.000
total_time: 199.000
total_time: 199.000
total_time: 200.000
total_time: 199.000
total_time: 199.000
total_time: 199.000
total_time: 206.000
total_time: 200.000

grep

jsonpath

Load testing

mkdir

Cert checking

openssl

X.509 v3 certificate and encoded in base64. A 2048-bit RSA key pair and wraps the public key in a self-signed certificate that is valid for 365 days with openssl.

Replacement

Last updated

Was this helpful?