Week 28 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 1897 and Bug 1522.
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --><!-- This component and the accompanying materials are made available under the terms of the License "Eclipse Public License v1.0" which accompanies this distribution, and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --><!-- Initial Contributors: Nokia Corporation - initial contribution.Contributors: --><!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"><concept id="GUID-625FFD05-5660-4A8B-A543-BABB5E7A5503" xml:lang="en"><title>HeaderStructure</title><prolog><metadata><keywords/></metadata></prolog><conbody><section id="GUID-5C773AFB-8332-4CB2-B811-E8029F79E284"> <p>HTTP representsheaders as a composition of parts and parameters. A simple header will haveonly one part, for example: </p> <codeblock id="GUID-A82B0317-1A26-5903-8E71-00144572B193" xml:space="preserve">Location: www.symbian.org</codeblock> <p>Morecomplex headers consist of a number of parts, separated by semicolon (;) orcomma (,) characters. In RFC 2616, these are defined with the EBNF notation'rule - A construct "#" is defined, similar to "*", for defining lists ofelements...' </p> <p>An example of a multiple-part header is: </p> <codeblock id="GUID-5A84BC7B-DDB4-59C2-9A94-6AB27B16E15A" xml:space="preserve">Accept: text/*, text/html, */*</codeblock> <p>Thethree parts have values text/*, text/html and */* respectively. When settingup a header like this, the client only needs to specify the parts, and neednot be concerned with separator characters. Separators are handled automaticallyby the built-in header codec. </p> <p>Some header fields allow one or moreparameters to be associated with individual header parts. An example of aheader with parameters is: </p> <codeblock id="GUID-74FC7FC7-EC3A-55EF-840F-8952E13B1A80" xml:space="preserve">Content-Type: text/html; charset=ISO-8859-4</codeblock> <p>The Content-Type header has a single part (value 'text/html') that has asingle parameter (named 'charset', value 'ISO-8859-4'). Again, the clientneed only be concerned with setting part and parameter values; the separatorsincluding the '=' character are dealt with automatically. </p> </section></conbody></concept>