html headers for a pdf file

I have some python cgi that emits a pdf file.  I think I need a few lines of html to start it out.  The idea if for the pdf file to appear on the browser.  Please advise.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Irwin SantosComputer Integration SpecialistCommented:
<title>My PDF</title>
<a href="myfile.pdf">My PDF File</a>
Irwin SantosComputer Integration SpecialistCommented:
where myfile.pdf is YOUR pdf filename
I think what you are looking for is called "HTTP header" and not "HTML header". I'm not familiar with python, but in general the HTTP header required for making the browser understand that the dynamic content it is receiving is a PDF file is :

Content-type: application/pdf

You may need to add a semicolon or a \n at the end, perhaps.
There are times when you need to use Content-Type instead of Content-type. I don't know if this applies to python or not.
Wish I can help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason C. LevineNo oneCommented:
Huji has it right.  Depending on how python handles line printing (I assume it handles it the same way as Perl), you will need the newline (\n) in there.  No semi-colon IIRC.
Glad to be of assistance!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.