The method is as follows:
1. First, turn on the WIFI on the laptop and connect the mobile phone to the WIFI to do the upload test.
2. Use the Wireshark packet capture tool on the computer to capture the packet. After capturing the packet, it was found that the signature cannot match
. The specific analysis found that an additional ContentType: application/octet was added. -stream
information. This header SDK does not
add it when calculating the signature, but WeChat or QQ browser will add this header information when sending the request, causing
this error. This header must also be included in the signature calculation.
3. After testing, there is no problem after removing this header and then simulating the upload. Therefore, the problem is that WeChat or
QQ has added the header information Content-Type: application/octet-stream.
4. WeChat needs to remove this header information.