6 QNetworkAccessManager* manager =
new QNetworkAccessManager(
this );
7 QNetworkRequest httpPost;
9 httpPost.setHeader( QNetworkRequest::ContentTypeHeader,
10 QString(
"application/x-www-form-urlencoded" ) );
11 httpPost.setUrl( QUrl( url ) );
13 reply = manager->post( httpPost, request.toAscii().data() );
15 connect(
reply, SIGNAL( finished (
void ) ),
18 connect(
reply, SIGNAL( error ( QNetworkReply::NetworkError ) ),
19 this, SLOT (
postError( QNetworkReply::NetworkError ) ) );
25 int error =
reply->error();
27 if ( error == QNetworkReply::NoError )
38 QString err = QString(
"9-Network Error (%1): " ).arg( error ) +
reply->errorString();