Comments (2)
A HEAD request gets redirected somewhere else entirely.
That's unfortunate - it would have been simpler to use this (could do it in a way that would be re-usable for #771).
from obtainium.
Yeah… I was trying to come up with approaches that wouldn't be specific to that site, but I ran across that issue, and figured I'd mention it so you wouldn't have to go through the same "it works for the browser, why doesn't it work for me?" stuff that I did.
If I do curl -I https://kustom.rocks/download/KLWP/939
, I get redirected to https://help.kustom.rocks/search?q=download/KLWP/939
. If I add -XGET
, it sends me to the correct azureedge URL for the actual APK instead. My guess is that whatever web server they're using only has a route configured for that download URL for GET, not for HEAD, and it's falling back to a default 'file not found' route that redirects to a help search.
The filename on the final APK url is kapp-aosp-klwp-prod-release.apk
- not enough to get a version number from, but enough to tell it's the AOSP version. (Still not sure why that one says release
when it's listed in the beta section…)
I suppose one option would be to include a toggle switch for "Don't use HEAD requests". It looks like curl -I -XGET
just does a full GET request like normal, then closes the connection as soon as the response body starts coming in. I don't know if the HTTP client library you're using gives you enough control to be able to do that. It might involve switching to the lower-level send
/StreamedResponse
APIs? I'm not sure if that would be worth it or not, though. I don't know if there are any other app sites that have this problem.
(The situation here is a little bit different from #771. Here, a given download URL always redirects to the same version of the app, and you still need the HTML to find new versions.)
from obtainium.
Related Issues (20)
- Extract the version number from GitHub's apk name HOT 1
- Some toggle functions in Github sources are abnormal HOT 2
- Backup downloaded apks HOT 3
- Unable to add Whatsapp HOT 2
- Feature Request: ability to collapse apps to one entry, either by collapsing categories of new folder feature
- make edits/cherry-picking of backups easier (for non-techies) and them thus more versatile HOT 3
- Check if repository got archived and add visual indicator or notification HOT 1
- PathAccessException #2 (on secondary user profiles)
- AIMP
- Test version as a update HOT 3
- Add Search Button HOT 4
- Check if shizuku service is enabled before starting download HOT 1
- InflateException HOT 1
- Fetch app description from repo HOT 2
- French translation completely revised HOT 2
- Filtering based on latest (embedded) date HOT 1
- Unable to download any app
- can't install StandardNotes HOT 2
- Skip updating apps that can't be updated
- how do you configure obtainium to only see one app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obtainium.