Home > Mobile >  [for] use QNetworkAccessManager send HTTPS forms, and what is the difference between with the postma
[for] use QNetworkAccessManager send HTTPS forms, and what is the difference between with the postma

Time:05-22

I start a website Posting process has been simulated with qt, from login to post, is to obtain the correct cookie, Posting is successful, but immediately deleted by the system automatically;
Then the postman was used to simulate post, use the cookie printed above other are all the same, also post a success, but not by the system automatically deleted;

Tried several times, and a variety of ways, it is qt posts will be automatically deleted, postman in all normal,

Don't understand, there is master know how to return a responsibility?

CodePudding user response:

The user-agent different? There are also some not important header may also be different, you catch a bag look not to know

CodePudding user response:

reference 1st floor mideum response:
the user-agent different? And some not important headers may also be different, you catch a bag look not to know
head exactly the same

CodePudding user response:

reference 1st floor mideum response:
the user-agent different? And some not important headers may also be different, you catch a bag look not to know
header and cookies are exactly the same, the form data is perfect;

Qt QHttpMultiPart to put the form at the beginning, the post is always failure, and then to direct the ie=utf-8 & amp; Tid=0 & amp; Vcode_md5=& amp; Floor_num=0 & amp; Rich_text=1 this way, the post is successful, but no one second to be deleted,
Then with the postman, need not send the form, instead of sending raw, raw inside with ie=utf-8 & amp; Tid=0 & amp; Vcode_md5=& amp; Floor_num=0 & amp; Rich_text=1, this format sent successfully, the system didn't delete,

Have a little don't understand

CodePudding user response:

Not to say that you set the header, so watch caught the most accurate
  •  Tags:  
  • Qt
  • Related