- #!/bin/bash
- OUT_FILE="curl_hello.py"
- URL="minio.sxkj.com"
- USERNAME="admin"
- SIGNATURE="sxkjadmin"
- MINIO_PATH="/mytest/xxx/hello_world.py"
- curl -o "${OUT_FILE}" \
- -H "Host: $URL" \
- -H "Date: ${DATE}" \
- -H "Content-Type: ${CONTENT_TYPE}" \
- -H "Authorization: AWS ${USERNAME}:${SIGNATURE}" \
- https://$URL${MINIO_PATH}
|