Guest Big Rich Posted September 18, 2012 Report Share Posted September 18, 2012 Hi, I'm new to Ketarin, so hopefully, this is a noobie issue: I'm trying to get an opensource C++ development environment up and running on Windows 7 64bit. I'm trying to installing a version of GCC from http://tdm-gcc.tdragon.net. The direct download URL is: http://downloads.sourceforge.net/project/tdm-gcc/TDM-GCC Installer/tdm64-gcc-4.7.1-2.exe OR (with mime) http://downloads.sourceforge.net/project/tdm-gcc/TDM-GCC%20Installer/tdm64-gcc-4.7.1-2.exe Notice the space in 'TDM-GCC Installer'? I can't get this URL to work in Ketarin, I've tried, (unsuccessfully): 1. Double-quotes around the entire URL (non-mime). 2. Double-quotes around the space 3. A '\' before the space 4. Add the space to a textual variable ({space}) The URL works fine for me with WGET (on Windows). BTW, the actual Ketarin error is: TDM-GCC-x64 The downloaded file is not a binary file type (text/html; charset=utf-8). Possibly there is an error page. Status code: 200 (OK) (http://downloads.sourceforge.net/project/tdm-gcc/TDM-GCC Installer/tdm64-gcc-4.7.1-2.exe) Any ideas or is this a bug? Thanks Rich Link to comment Share on other sites More sharing options...
shawn Posted September 19, 2012 Report Share Posted September 19, 2012 Assuming you're storing that URL in the variable "url", you could use this in the DownloadURL field: {url:replace: :%20} This will ensure that spaces are properly URL-encoded. Link to comment Share on other sites More sharing options...
Guest Big Rich Posted September 19, 2012 Report Share Posted September 19, 2012 Hi Shawn, That doesn't work for me, I get the following: TDM-GCC-x64 The downloaded file is not a binary file type (text/html; charset=utf-8). Possibly there is an error page. Status code: 200 (OK) (http://downloads.sourceforge.net/project/tdm-gcc/TDM-GCC%20Installer/tdm64-gcc-4.7.1-2.exe) The URL listed in that error works with WGET and is no different to the URL I listed in my first post, which was correctly URL encoded (sorry, I said mime). It seems a shame to me to fall down at the first hurdle (this is the first time I'm using Ketarin). I'm using version 1.6.0.434. Cheers Rich Link to comment Share on other sites More sharing options...
shawn Posted September 19, 2012 Report Share Posted September 19, 2012 Did you set your user-agent to something other than the default? Ketarin uses a normal browser user-agent, which Sourceforge intercepts and treats as a browser, inserting the interstitial ad page. You'll need to set the user-agent to something else, such as "wget/1.0" in order to have it work reliably. Link to comment Share on other sites More sharing options...
Guest Big Rich Posted September 20, 2012 Report Share Posted September 20, 2012 OK, that did the trick, thanks. BTW, I used 'Wget/1.10.1' if anybody's interested. Thanks Rich 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