|
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 reference |
|
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
12 <reference id="GUID-6B8BA8A8-AD56-55BA-9659-15091E988FB7" xml:lang="en"><title>httpexampleclient: |
|
13 A Simple HTTP Client Example</title><shortdesc>This example shows how to use HTTP APIs. </shortdesc><prolog><metadata><keywords/></metadata></prolog><refbody> |
|
14 <section id="GUID-42E724C9-4C84-5AFF-B9F7-23BAE90CE48F"><title>Purpose</title> <p>This |
|
15 example demonstrates the HTTP API. For more information about this example, |
|
16 see <xref href="GUID-1D32D093-1B7B-5CE8-B57D-5469C1E8E4B9.dita">Simple Client Session |
|
17 guide</xref>, which is based around code snippets taken from the example. |
|
18 Also see the <xref href="GUID-50BBCB9C-F234-5813-A42E-3FCFB0F14B66.dita">HTTP Overview</xref>. </p> </section> |
|
19 <section id="GUID-4D40BEB0-1C5B-538F-91A7-29A3D7D6D16B"><title>Download</title> <p>Click |
|
20 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-f8185804-e4a0-47b3-9f66-e531d88ee9ce.zip" scope="external">Httpexampleclient.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-f8185804-e4a0-47b3-9f66-e531d88ee9ce.html" scope="peer">browse</xref> to view the example code. </p> </section> |
|
21 <section id="GUID-94C5014D-721C-4BD8-856A-C4B4E0F11C72"><title>Class Summary</title><p> <xref href="GUID-651801A5-5473-3856-9647-46823598C5C1.dita"><apiname>RHTTPSession</apiname></xref></p><p> <xref href="GUID-F34F7481-00CF-3A1B-8D45-D053AD6769A8.dita"><apiname>MHTTPTransactionCallback</apiname></xref></p><p><xref href="GUID-2E673024-239B-3965-8880-C47B7CC24EF6.dita"><apiname> RHTTPTransaction </apiname></xref></p><p><xref href="GUID-651801A5-5473-3856-9647-46823598C5C1.dita"><apiname>RHTTPSession</apiname></xref></p><p><xref href="GUID-57216A14-97B8-324C-BB00-63CA880CC779.dita"><apiname>MHTTPFilterBase</apiname></xref></p><p><xref href="GUID-54F9A87B-FE2F-3429-9793-0A24B83466B9.dita"><apiname>RHTTPHeaders</apiname></xref></p><p><xref href="GUID-8D952FEE-0EA0-3DBC-AADB-6F4200B82687.dita"><apiname>RHTTPRequest</apiname></xref></p><p><xref href="GUID-BA9EA976-E4CF-37D7-9E73-420A6D50203F.dita"><apiname>RHTTPResponse</apiname></xref></p><p><xref href="GUID-DEE8279A-3BEC-316F-97B8-6C49FEDBD5B3.dita"><apiname>THTTPHdrVal</apiname></xref></p><p><xref href="GUID-4818EAC3-BE59-3438-A864-E4746FE8DDBC.dita"><apiname>MHTTPAuthenticationCallback</apiname></xref></p><p><xref href="GUID-1B03F068-9552-37BA-A284-8E54FAC2AAC5.dita"><apiname>MHTTPDataSupplier</apiname></xref></p></section> |
|
22 <section id="GUID-F03E3A90-59C0-50F6-B1CA-27E86A8B1934"><title>Building and |
|
23 configuring</title> <p>To build the example: </p> <ul> |
|
24 <li id="GUID-50180DE5-DAE7-5C1A-A59C-01A9CC76DADE"><p>You can build the example |
|
25 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
|
26 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
|
27 you use the command line, open a command prompt, and set the current directory |
|
28 to the source code directory of the example. You can then build the example |
|
29 with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake |
|
30 bldfiles</userinput> </p> <p><userinput>abld build</userinput> </p> <p><xref href="GUID-793A5EF9-CC16-5EEB-9011-6431EA76EB15.dita">How to use bldmake</xref> and <xref href="GUID-B6B54E07-3B34-5D5C-8815-93383FA8FB4B.dita">How to use abld</xref> describe |
|
31 how to use the SBSv1 build tools. </p> </li> |
|
32 <li id="GUID-7F23E0FC-6A18-58BF-B066-D50333284761"><p>For the emulator, the |
|
33 example builds an executable called <filepath>httpexampleclient.exe</filepath> in |
|
34 the <filepath>epoc32\release\winscw\<udeb or urel>\</filepath> folder. </p> </li> |
|
35 </ul> </section> |
|
36 </refbody><related-links> |
|
37 <link href="GUID-1D32D093-1B7B-5CE8-B57D-5469C1E8E4B9.dita"><linktext>Simple Client |
|
38 Session guide</linktext></link> |
|
39 <link href="GUID-50BBCB9C-F234-5813-A42E-3FCFB0F14B66.dita"><linktext>HTTP Overview</linktext> |
|
40 </link> |
|
41 </related-links></reference> |