Jump to content
Ketarin forum

Not able to download from URL which contains a space in it.


Guest Big Rich
 Share

Recommended Posts

Guest Big Rich

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

Guest Big Rich

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.