Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Getting CGI script to send a binary file

by prowler (Friar)
on Feb 08, 2005 at 04:03 UTC ( [id://428903]=note: print w/replies, xml ) Need Help??


in reply to Getting CGI script to send a binary file

Hi,

In the CGI module (the 'CREATING A STANDARD HTTP HEADER' section) there is mention of the -attachment parameter:

The -attachment parameter can be used to turn the page into an attachment. Instead of displaying the page, some browsers will prompt the user to save it to disk. The value of the argument is the suggested name for the saved file. In order for this to work, you may have to set the -type to "application/octet-stream".

I hope this helps.

Prowler
 - Spelling is a demanding task that requies you full attention.

  • Comment on Re: Getting CGI script to send a binary file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-23 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found