This example shows how to use HTTP APIs.
This updated C++ application demonstrates simple HTTP GET and POST transactions using the HTTP Client API. Basic HTTP authentication is also supported. The updated v2.2 example uses application-level roaming (introduced in S60 3rd Edition, Feature Pack 2 onwards). The updated example has been tested to support S60 5th Edition and touch UI. Important classes: RHTTPSession, RHTTPTransaction, RHTTPHeaders, MHTTPDataSupplier, MHTTPAuthenticationCallback, MHTTPTransactionCallback. For more details, click on this link : Http Client Example
Click on the following link to download the example: Httpclientexample.zip
Click: browse to view the example code.
To build the example:
You can build the example from your IDE or the command line.
If you use an IDE, import the bld.inf file of the example into your IDE, and use the build command of the IDE.
If you use the command line, open a command prompt, and set the current directory to the source code directory of the example. You can then build the example with the SBSv1 build tools with the following commands:
bldmake bldfiles
abld build
How to use bldmake and How to use abld describe how to use the SBSv1 build tools.
For the emulator, the example builds an executable called httpexampleclient.exe in the epoc32\release\winscw\<udeb or urel>\ folder.