Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Sending Multiple Content-Types

by Petras (Friar)
on Jun 28, 2003 at 00:51 UTC ( #269782=note: print w/ replies, xml ) Need Help??


in reply to Re: Sending Multiple Content-Types
in thread Sending Multiple Content-Types

fglock, What I'm really trying to figure out is how to put both together. I can use

print "Content-disposition: attatchment; filename=$filename\n"; print "Content-Length: $filesize\n"; print "Content-Type: application/x-tar\n\n";
as a header for the file (I want to send the file once the user clicks a submit button). I could also use a standard <code>content-type: text/html<code> to send an html file with an anchor link to the file.

-but-

If I send the file then try to print an HTML page I get an error, and if I try to print the HTML page then send the file the file's header get rendered as HTML. Multi-Part headers were suggested, I'm just having trouble figuring those out.
Cheers,
Petras
Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.

-Howard Aiken


Comment on Re: Re: Sending Multiple Content-Types
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-09-17 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (56 votes), past polls