Fix for "HTTP Request" Not Working with Google Drive Links
I've been troubleshooting why Tasker's "HTTP Request"
action fails to download from a Google Drive link, even though "HTTP Get"
works perfectly. After some digging, I found a simple fix that makes "HTTP Request"
behave like "HTTP Get"
in this case:
When using the "HTTP Request"
action to download a file (like an image) from a URL such as:
https://drive.google.com/uc?export=download&id=YOUR_FILE_ID
Make sure you do both of the following:
-
Enable "Automatically Follow Redirects"
-
Add a Mime type custom header in the Headers field:
Accept: image/png
You can also add:
User-Agent: Mozilla/5.0
…to better emulate a browser.