I want to make HTTP POST request to a URL and show the response text back to the user.
I download the HTTPClientExample project from here - http://www.forum.nokia.com/info/sw.n..._2_en.zip.html
I browsed through the HTTPClientExample source files. To start off, I copied the ClientEngine.h and ClientEngine.cpp to my project folder structure.
In their ClientAppUI.cpp, CClientAppUi::ConstructL(), they have declared iEngine as
So, now I am confused where I should place the iEngine initialization code in my project. In the HeloWorldContainerView.cpp or HelloWorldAppUi.cpp. Please tell me in which constructor I should add the initialization code. (I see 2 to 3 constructor like functions in each file)
iAppView = CClientAppView::NewL(ClientRect());
iEngine = CClientEngine::NewL(*iAppView);
Once I declare iEngine, I could make HTTP POST request using the following code
TRAPD(err, iEngine->IssueHTTPPostL(uri8, KMimeType, postData8));