curl_minio.sh 333 B

123456789101112
  1. #!/bin/bash
  2. OUT_FILE="curl_hello.py"
  3. URL="minio.sxkj.com"
  4. USERNAME="admin"
  5. SIGNATURE="sxkjadmin"
  6. MINIO_PATH="/mytest/xxx/hello_world.py"
  7. curl -o "${OUT_FILE}" \
  8. -H "Host: $URL" \
  9. -H "Date: ${DATE}" \
  10. -H "Content-Type: ${CONTENT_TYPE}" \
  11. -H "Authorization: AWS ${USERNAME}:${SIGNATURE}" \
  12. https://$URL${MINIO_PATH}