Pastebin

Paste #545: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

  1 #!/usr/bin/zsh
  2 BASE_URL="https://amigos18.diku.dk:3076/test/"
  3 CURL="/usr/bin/curl"
  4 CERTDIR='user-cert/Morten_Meiling_Olsen-certs'
  5 cert_file="$CERTDIR/cert.pem"
  6 key_file="$CERTDIR/key.pem"
  7 ca_cert_file="$CERTDIR/cacert.pem"
  8 password="hest"
  9
 10 do_test () {
 11   mfile=$1
 12   echo "Fetching file: $mfile"
 13   echo ""
 14   echo "----------------------------------------------------------------------"
 15   time $CURL \
 16     --cert $cert_file \
 17     --key $key_file \
 18     --cacert $ca_cert_file \
 19     --pass $password \
 20     --url $BASE_URL/$file
 21   echo "----------------------------------------------------------------------"
 22
 23 }
 24
 25 do_test("hello.html")
 26
 27
~
~
~
~
~
~
~

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.