I am trying to make a HTTP request from my S60 emulator in which I am facing some problems. I am not able to send the request outside the emulator i.e. the request does not leave the device. I looked at the server logs and I can see the request never reached it. But I get a 'RemoteHostClosedError' after some time. This is after the emulator asks me to choose an access point in which I have only option(winsock) which I am assuming is trying to connect through the network my computer is connected to. I have tried the same piece of code in the QT simulator of QT creator where I get a proper response from the server for the same call. My code is as follows.
"netWorkError" in the above code gets "NoError", does this mean I am getting no error when my request is sent or is there some other meaning to it.
m_networkRequest = new QNetworkRequest;
m_networkReply = m_networkAccessManager.get(*m_networkRequest);
QNetworkReply::NetworkError networkError = m_networkReply->error();
When I try to send a request from the emulator's browser, I see that the emulator adds "x-wap-profile" in the HTTP header options. I also tried emulating the same on my code as follows
This did not help either.
I think I am missing some option in the HTTP header or I am missing something completely unknown to me. Any direction in this regard will be appreciated.
My current environment is as given:
S60 5th Edition