Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: No output from CGI script when using CGI::Debug

by johnny_carlos (Scribe)
on Nov 07, 2011 at 21:21 UTC ( [id://936582]=note: print w/replies, xml ) Need Help??


in reply to Re^2: No output from CGI script when using CGI::Debug
in thread No output from CGI script when using CGI::Debug

If you are trying to stream a spreadsheet to a browser, you'll need to define a different content-type. Browsers don't automatically know what the web server is sending, you define that in the content-type(also known as MIME). The code snippet above is telling the browser, "Hey, what I'm about to send you is text/html". So if the web server outputted excel binary code instead, the browser will render it as funny text.
  • Comment on Re^3: No output from CGI script when using CGI::Debug

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-16 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found