[Qt-interest] QNetworkAccessManager::post with more than 32KB QByteArray
Marek Bronowicki
marek at cyberdeus.pl
Wed Oct 26 16:02:49 CEST 2011
Hello
I have a weird problem.
I'm making a software where is a lot of positions to edit, so I'm
sending it like an php array
QByteArray postdata;
postdata.append("something[0]=data1");
postdata.append("&something[1]=data2");
...etc.
It's a for loop so it can be unlimited, but what I have noticed that
event qDebug() << postdata cannot be handled when postdata is over 32KB
and of course everything that I make
QNetworkAccessManager *networkmanager = new QNetworkAccessManager(this);
QNetworkRequestrequest;
request.setUrl(url);
request.setRawHeader("User-Agent", "Digital Signage CMS");
request.setRawHeader("Authorization", "Basic " + QByteArray(QString("%1:%2").arg(m_user).arg(m_password).toAscii()).toBase64());
reply = networkmanager->post(request,postdata);
php that receives the data gets it up to 32KB, and this is for sure about my QT app, because when I use php script to upload the same data it works fine.
Should I use some other function like QDataStream or something similar in post method of QNetworkAccessManager?
Best Regards,
Marek Bronowicki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111026/2f3ccdc4/attachment.html
More information about the Qt-interest-old
mailing list