Home > Mobile >  Dear bosses, QNetworkAccessManager how to set the request header of a get request?
Dear bosses, QNetworkAccessManager how to set the request header of a get request?

Time:12-10

Dear bosses, QNetworkAccessManager how to set the request header of a get request?

CodePudding user response:

Use QNetworkRequest Settings, depending on what you set, some have a predefined can use QNetworkRequest: : setHeader, the use of outside the QNetworkRequest: : setRawHeader

CodePudding user response:

reference 1st floor mideum response:
with QNetworkRequest Settings, depending on what you set, some have a predefined can use QNetworkRequest: : setHeader, the use of outside the QNetworkRequest: : setRawHeader

Post with this, didn't get this parameter

CodePudding user response:

Get request in the URL, it is not necessary to use the header, as far as I understand, can't use on

CodePudding user response:

refer to the second floor scenery 六七座 response:
post with this, didn't get this parameter

How can not get you to QNetworkAccessManager is also a QNetworkRequest
  •  Tags:  
  • Qt
  • Related