books
Free Books / Computers / Practical mod_perl /

previous page: 16.2. Content Headers
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 16.2.2. Content-Length Header

16.2.1. Content-Type Header




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

Most CGI programmers are familiar with Content-Type. Sections 3.7, 7.2.1, and 14.17 of the HTTP specification cover the details. mod_perl has a content_type( ) method to deal with this header:

$r->content_type("image/png");

Content-Type should be included in every set of headers, according to the standard, and Apache will generate one if your code doesn't. It will be whatever is specified in the relevant DefaultType configuration directive, or text/plain if none is active.

 

Continue to:

  • prev: 16.2. Content Headers
  • Table of Contents
  • next: 16.2.2. Content-Length Header

Books by Stas Bekman:















TOP
previous page: 16.2. Content Headers
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 16.2.2. Content-Length Header

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com