Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/sh
  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