Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: download hidden files

by rattusillegitimus (Friar)
on Aug 20, 2002 at 14:12 UTC ( #191461=note: print w/replies, xml ) Need Help??

in reply to download hidden files

I'm not sure if this is a problem or not (I'm not at my home box where I can run tests), but I noticed that you seem to be sending two Content-type headers for filenames ending in .pdf:

print "Content-type: application/pdf\n" if ($filename =~ /\.pdf$/); print "Content-type: application/x-pdf\n" if ($filename =~ /\.pdf$/);

He seemed like such a nice guy to his neighbors / Kept to himself and never bothered them with favors
- Jefferson Airplane, "Assassin"

Replies are listed 'Best First'.
Re: Re: download hidden files
by hopalong (Initiate) on Aug 20, 2002 at 16:17 UTC
    I tried it with both and only one pdf mime type. It didn't seem to make a difference for me. What does the "x-" indicate, as there are several mime types that use it?

    Don't know why I'd decided on inline, (thought I read a definition), but "attachment" makes more sense. Again though, it didn't make any difference for my setup.

    Also, if this can't really be accomplished, how does do it without fail? Do they just assume no one is stupid enough to set their browsers to run executables?

    Thanks for everyone's help.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://191461]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2021-03-01 10:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found