|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-625FFD05-5660-4A8B-A543-BABB5E7A5503" xml:lang="en"><title>Header |
|
13 Structure</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section id="GUID-5C773AFB-8332-4CB2-B811-E8029F79E284"> <p>HTTP represents |
|
15 headers as a composition of parts and parameters. A simple header will have |
|
16 only one part, for example: </p> <codeblock id="GUID-A82B0317-1A26-5903-8E71-00144572B193" xml:space="preserve">Location: www.symbian.org</codeblock> <p>More |
|
17 complex headers consist of a number of parts, separated by semicolon (;) or |
|
18 comma (,) characters. In RFC 2616, these are defined with the EBNF notation |
|
19 'rule - A construct "#" is defined, similar to "*", for defining lists of |
|
20 elements...' </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>The |
|
21 three parts have values text/*, text/html and */* respectively. When setting |
|
22 up a header like this, the client only needs to specify the parts, and need |
|
23 not be concerned with separator characters. Separators are handled automatically |
|
24 by the built-in header codec. </p> <p>Some header fields allow one or more |
|
25 parameters to be associated with individual header parts. An example of a |
|
26 header 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 a |
|
27 single parameter (named 'charset', value 'ISO-8859-4'). Again, the client |
|
28 need only be concerned with setting part and parameter values; the separators |
|
29 including the '=' character are dealt with automatically. </p> </section> |
|
30 </conbody></concept> |