[Qt-interest] QNetworkAccessManager::post with more than 32KB QByteArray

Marek Bronowicki marek at cyberdeus.pl
Wed Oct 26 18:00:00 CEST 2011


Sorry...
everything is ok... I tested it on two servers... one with suhosin and 
one without... it was this suhosin limit not my soft :)


W dniu 2011-10-26 16:02, Marek Bronowicki pisze:
> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111026/fdb68e1e/attachment.html 


More information about the Qt-interest-old mailing list