Home > Back-end >  Return to 302 qt QNetworkAccessManager to send a post request
Return to 302 qt QNetworkAccessManager to send a post request

Time:11-06

If inscribe
Also returned to the 302 before sending a get request, then add the QNetworkRequest: : FollowRedirectsAttribute attribute is normal, after the post request is also back to 302, but also added after the attribute is still 302.
First clear the code must be no problem, before running a small half a year, this time use it returns 302, caught found the hidden host, jump happened so doubt, ask bosses give a solution or way of thinking

CodePudding user response:

Come and see a big ah

CodePudding user response:

As the post and get less, can use the old way, reply - & gt; RawHeader (" Location ") jump for the url (address and port) in front of yourself, and then to please redirect url, may redirect many times, then you can use the get and set the QNetworkRequest: : FollowRedirectsAttribute...
  • Related