How to capture rclone S3 requests via mitproxy
First, start mitmproxy
:
./mitmproxy
Now, in your rclone command, add the following environment variable
https_proxy=http://localhost:8080
and add the following command line flag:
--no-check-certificate
Full example
https_proxy=http://localhost:8080 rclone copy myfile :s3:mybucket/myfolder/ --no-check-certificate --s3-endpoint https://minio.mydomain.com --s3-access-key-id my-access-key --s3-secret-access-key my-secret-key --s3-region global