Tim, I believe I know what you are asking.  Normally, CGI returns data in
the form of text/html.  This is indicated by including the line

Content-type: text/html\n\n

in the output of your CGI application.  This instructs the receiving agent
to treat all data that follows as html text.  I believe you want to send
the contents of a file instead of an html response.  Change the Content-type:
http header to an appropriate data type for the data you are sending and
the receiving agent should act accordingly.

ie:

Content-type: image/gif\n\n

Browser will display the graphical image.  Not having a list of acceptable
mime types in front of me precludes me giving a more specific example.

HTH

Will

-- Original Message --

>
>I would like to create the file dynamically with a cgi program
>and send it to the browser rather than placing an href to a
>static file. This may not even be possible, but it would
>simplify things on my end.




Visit iWon.com - the Internet's largest guaranteed cash giveaway! Click
here now for your "Thank You" gift:
http://www.iwon.com/giftcenter/0,2612,,00.html?t_id=20157




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to