Wednesday, October 28, 2009

Re: [BLUG] hiding an .html link as an .mp3

On Wed, 28 Oct 2009 18:04:08 -0400, Ben Shewmaker <ben@shewbox.org> wrote:

> Looking through the html for the site, it looks like your standard
> link. So when I tell wget to recursively scan for .mp3s it thinks it
> finds a match and downloads the "mp3" (I also tried the Firefox plugin
> dowmthemall but it has the same effect) Does anybody have any idea how
> this sort of thing works?

I am not sure exactly where you are asking here, but if you are asking why
a URL ending in .mp3 in the path isn't an mp3, that's pretty simple. A URL
is just a locator, and doesn't actually say anything about the file type.
The file type is sent in the response header as a mime-type. So, you could
serve all your html pages as .mp3 urls if you wanted to do so. All it
takes is a resolution of the URL that provides the right content.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: