Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. host="localhost:8888"
  4. curl="/usr/bin/curl"
  5.  
  6. uploadurl=$(${curl} "http://${host}/upload")
  7. echo "Upload URL: ${uploadurl}"
  8. echo "getting blob url from ${uploadurl}"
  9. filename=$1
  10. ${curl} -0 -v -include --form myFile="@${filename}" "$uploadurl"
  11. # echo Blob URL: ${bloburl}
  12. echo ${curl} -0 -v -include --form myFile="@${filename}" "${uploadurl}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement