corona
corona copied to clipboard
[Android]: network.request fails with query string in URL
- [x] I tried searching Solar2D forums for the solution.
Describe the bug This is in regards to https://forums.solar2d.com/t/bug-network-request-not-accepting-queries-in-the-url-when-running-on-android/339855/56. On Android only (an actual Android device or Android emulator), if you use a GET network.request to download a file with a query string in the URL, the request fails with the error: "no protocol." This works fine in the Corona simulator and on iOS devices.
To Reproduce Steps to reproduce the behavior:
- Call network.request to download a file from a URL like https://www.dropbox.com/s/a8o31p2padwr9zk/versions.json?dl=1, where the URL has a query string such as
?dl=1at the end.
Target platform and where build was made:
- Device: Android (personally tested on BlueStacks emulator on MacBook Pro but had reports from actual Android users)
- Last tested build with Corona 2020.3621
Additional context Based on the forum, this has been an issue since at least June 2016. I've noticed it myself for a year or so but never had a chance to narrow it down in my project until now.