Уведомления

Группа в Telegram: @pythonsu

#1 Ноя. 10, 2008 22:22:15

124bit
От:
Зарегистрирован: 2008-04-10
Сообщения: 121
Репутация: +  0  -
Профиль   Отправить e-mail  

QNetworkAccessManager.post (

http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qnetworkaccessmanager.html#post



QNetworkAccessManager.post (self, QNetworkRequest request, QIODevice data)

This function is used to send an HTTP POST request to the destination specified by request. The contents of the data device will be uploaded to the server.

data must be opened for reading when this function is called and must remain valid until the finished() signal is emitted for this reply.

The returned QNetworkReply object will be open for reading and will contain the reply sent by the server to the POST request.

Note: sending a POST request on protocols other than HTTP and HTTPS is undefined and will probably fail.


QNetworkAccessManager.post (self, QNetworkRequest request, QByteArray data)

This is an overloaded member function, provided for convenience.

This function sends the contents of the data byte array to the destination specified by request.






Подскажите пожалуйста, как сформировать запрос на заполнение двух полей формы(user и pass)// я никак не могу понять, какой QByteArray или QIODevice надо сделать.. ((



Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version