Skip to the content
Documentation

[HTTPHeaderSettings]

No ratings yet
Setting Summary
HeaderList Not documented yet.

In this section

Contributors

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. how to change default MIME type

    Istvan Balogh ·

    If you need to send XML or any other kind of data instead of XHTML
    add these lines to your site.ini.append.php file
    [HTTPHeaderSettings]
    CustomHeader=enabled
    HeaderList[]=Content-type
    Content-type[]
    # Content-type[/] means for the whole siteaccess
    # text/xml must be changed into whatever you need
    Content-type[/]=text/xml
    I found this solution after spending hours to make a XML stream which was still regarded as HTML by my browser.

Comments

Add a comment

Comments are read by a moderator before they appear.