Код: Выделить всё
#tag: b'=x\x9d{_0\xf9;c8\x94inc]\xb1'
#nonce: b'\x1f\xf4\xbe\xcc\xf2\x84f\xf2*\x8dP\x16\xc8\x02\xfe\xbe'
requests.post(url, data=payload, headers={"Content-Type": "application/octet-stream"}, verify="myShnazzyCertificate.pem")
Код: Выделить всё
data = flask.request.data
## stuff happens here, then -> print("tag: ", tag); print("nonce: ", nonce)
#tag: b'%3Dx%9D%7B_0%F9%3Bc8%94inc%5D%B1'
#nonce: b'%1F%F4%BE%CC%F2%84f%F2%2A%8DP%16%C8%02%FE%BE'
Код: Выделить всё
tag = tag.replace(b"%", bytes(r"\x".encode("utf-8")))
nonce = nonce.replace(b"%", bytes(r"\x".encode("utf-8")))
Подробнее здесь: https://stackoverflow.com/questions/791 ... ecode-data
Мобильная версия