7 Nokia Corporation - initial contribution. |
7 Nokia Corporation - initial contribution. |
8 Contributors: |
8 Contributors: |
9 --> |
9 --> |
10 <!DOCTYPE reference |
10 <!DOCTYPE reference |
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
12 <reference id="GUID-6B8BA8A8-AD56-55BA-9659-15091E988FB7" xml:lang="en"><title>S60 |
12 <reference id="GUID-6B8BA8A8-AD56-55BA-9659-15091E988FB7" xml:lang="en"><title>HTTP |
13 Platform: HTTP Client Example</title><shortdesc>This example shows how to use HTTP APIs. </shortdesc><prolog><metadata><keywords/></metadata></prolog><refbody> |
13 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>Description</title> <p>This |
14 <section id="GUID-42E724C9-4C84-5AFF-B9F7-23BAE90CE48F"><title>Description</title> <p>This |
15 updated C++ application demonstrates simple HTTP GET and POST transactions |
15 updated C++ application demonstrates simple HTTP GET and POST transactions |
16 using the HTTP Client API. Basic HTTP authentication is also supported. The |
16 using the HTTP Client API. Basic HTTP authentication is also supported. </p> </section> |
17 updated v2.2 example uses application-level roaming (introduced in S60 3rd |
|
18 Edition, Feature Pack 2 onwards). The updated example has been tested to support |
|
19 S60 5th Edition and touch UI. Important classes: RHTTPSession, RHTTPTransaction, |
|
20 RHTTPHeaders, MHTTPDataSupplier, MHTTPAuthenticationCallback, MHTTPTransactionCallback. |
|
21 For more details, click on this link : <xref href="http://www.forum.nokia.com/info/sw.nokia.com/id/458604da-e7fc-4d4e-92ee-3ce8a1e68a86/S60_Platform_HTTP_Client_API_Example.html" scope="external">Http Client Example</xref></p> </section> |
|
22 <section id="GUID-4D40BEB0-1C5B-538F-91A7-29A3D7D6D16B"><title>Download</title> <p>Click |
17 <section id="GUID-4D40BEB0-1C5B-538F-91A7-29A3D7D6D16B"><title>Download</title> <p>Click |
23 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">Httpclientexample.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> |
18 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">Httpclientexample.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> |
24 <section id="GUID-F03E3A90-59C0-50F6-B1CA-27E86A8B1934"><title>Building |
19 <section id="GUID-F03E3A90-59C0-50F6-B1CA-27E86A8B1934"><title>Building and |
25 and configuring</title> <p>To build the example: </p> <ul> |
20 configuring</title> <p>To build the example: </p> <ul> |
26 <li id="GUID-50180DE5-DAE7-5C1A-A59C-01A9CC76DADE"><p>You can build the example |
21 <li id="GUID-50180DE5-DAE7-5C1A-A59C-01A9CC76DADE"><p>You can build the example |
27 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
22 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
28 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
23 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
29 you use the command line, open a command prompt, and set the current directory |
24 you use the command line, open a command prompt, and set the current directory |
30 to the source code directory of the example. You can then build the example |
25 to the source code directory of the example. You can then build the example |