Garbage in headers when POST-ing with Indy 10.5.8

前端 未结 2 1899
予麋鹿
予麋鹿 2021-01-21 20:13

I\'m trying to send a file using POST in multipart/form data via Indy 10.5.8. I\'m using Delphi XE2 and I\'ve been trying to POST a file to a server. This is the firs time I\'ve

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-21 20:35

    Do all of those . characters represent a 00 byte? Because that looks like the result of a ASCII->UTF16 conversion. And the garbage in the Content-Disposition could be related to a conversion like that copying bytes around and getting the end of the buffer wrong, leaving you with a corrupted string.

    If you can come up with code to reproduce this consistently, you should probably post a bug report on the Indy forums.

提交回复
热议问题