[Qt-interest] Does QNetworkAccessManager::post works?
Thiago Macieira
thiago.macieira at trolltech.com
Wed Dec 24 17:01:19 CET 2008
Aleksey Palazhchenko wrote:
>Hi list,
>
>I'm trying to POST some data to server-side PHP script. Script is
>located at http://silverstone.name/qdpim/test.php and just writes all
>$_GET and $_POST data to stdout. get() method works fine, but POST
>packet is empty. :/
>
>Small example: http://gist.github.com/39674
>
>May someone help me with this problem?
You posted
const QByteArray data("me_is_post_data");
I doubt PHP knows how to parse that into variables for $_POST.
Can you verify with tcpdump or wireshark that the data is transmitted?
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Software Engineer - Nokia, Qt Software
Qt Software is hiring - ask me
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081224/b95fe1a9/attachment.bin
More information about the Qt-interest-old
mailing list