When sending http requests from phones to remote servers, we frequently get QNetworkReply::HostNotFoundError errors back whereas the network is fine
from : qt bug
I solved the problem writing and using S60Qhttp class
I tryed to reply the QHttp class reference. The classes are still under development.
You are wellcome if you want to contribute
At moment do not use :
int get ( const QString & path, QIODevice * to = 0 )
but
int get(const QString& path, QByteArray& data);
post method (int post ( const QString & path, QIODevice * data, QIODevice * to = 0 ) ) is still under development
in *.pro file use:
symbian {
HEADERS += S60QHttp.h \
S60QHttpPrivate.h
SOURCES += S60QHttp.cpp \
S60QHttpPrivate.cpp
LIBS += -lcone \
-leikcore \
-lavkon \
-lbafl \
-lInetProtUtil \ # for UriParser
-lhttp \ # for HTTP Client API
-lecom \ # for HTTP Client API
-lesock \ # for RSocketServ
-lcommdb
}
Important: Do not use Qt Http stack MOBILITY += bearer and QNetworkSession etc etc..
Sebastiano Galazzo
tel .: +39 338 5482810
18 novembre 2008