shawn Posted March 26, 2014 Report Share Posted March 26, 2014 Recently Google has been frustrating me with their downloads. Some days the link will include http:// or https:// and some days it'll start as // - completely ignoring the protocol portion of the URL. Can we get a workaround in the Ketarin engine so that if no protocol is included in the download link Ketarin will attempt http or https if it begins with // ? Thanks, Flo! Link to comment Share on other sites More sharing options...
floele Posted March 30, 2014 Report Share Posted March 30, 2014 How do you mean? Try both protocols and see what works? And what error do you actually get? Link to comment Share on other sites More sharing options...
shawn Posted March 30, 2014 Author Report Share Posted March 30, 2014 My preference would be to select the protocol based on the source of the first variable in the download source URL. If it's "{sdownload}" then, if the variable definition for {sdownload} is a "content from URL" type, use the protocol from the URL that it sourced from. It would be even better if this were standard behavior for all URL sources - that is, if any variable in any URL field didn't include the protocol but did start with "//", then automatically prepend it's source variable protocol. Here's a couple examples of the specific issue I'm having. Sometimes I get this type of error from various sources (usually but not always Google-related): Picasa The operation has timed out (//dl.google.com/picasa/picasa39-setup.exe) And if I manually prepend the protocol it breaks it at other times: Picasa Invalid URI: The Authority/Host could not be parsed. (http:https://dl.google.com/picasa/picasa39-setup.exe) Thanks, Flo! Link to comment Share on other sites More sharing options...
shawn Posted March 30, 2014 Author Report Share Posted March 30, 2014 Actually, as long as you're making this change (assuming you will), it would be great if you could prepend the domain name from a previous variable source if a URL begins with only a single slash, such as: Bitcoin Invalid URI: The format of the URI could not be determined. (/bin/0.9.0/bitcoin-0.9.0-win32-setup.exe) At times this site will provide the complete URL and sometimes only a partial URL as above. Having the protocol & domain prepended if a URL begins with a single slash would be awesome. Link to comment Share on other sites More sharing options...
floele Posted March 31, 2014 Report Share Posted March 31, 2014 But how does using a different protocol help with timeouts? Sorry but I don't really get it Link to comment Share on other sites More sharing options...
shawn Posted March 31, 2014 Author Report Share Posted March 31, 2014 I suspect that Ketarin isn't capable of using protocol-less browsing, which results in fragmented URLs like this not working; //dl.google.com/picasa/picasa39-setup.exe Please try it. Set that as the download URL for a new profile. It'll try to download and fail. The worst part is that it takes a long time to try, and it's not really trying. If there were a default protocol applied to protocol-less URLs at least I'd know whether it were being treated as a real URL. I suspect that without the protocol it's trying to use a network path/samba (// being treated as \\) which will fail for most servers out there. The only one I know will actually work is live.sysinternals.com - and they reply by http anyway, so who needs it? Anyway...Now that newer browsers are processing protocol-less URLs by prefixing the current state of the active site, it is becoming more of a problem. There's a good write-up of how protocol-less browsing works (and why) here: http://www.paulirish.com/2010/the-protocol-relative-url/ Link to comment Share on other sites More sharing options...
floele Posted April 6, 2014 Report Share Posted April 6, 2014 OK, I understand now. Will try to include a fix for the next version. Link to comment Share on other sites More sharing options...
shawn Posted April 6, 2014 Author Report Share Posted April 6, 2014 Awesome! Thank you Flo! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now