Closed hyfree closed 1 year ago
I assume you know what \r\n\ means? I've never used Wireshark but I imagine it just displays linebreaks escaped like this so they always fit on one line. If I'm wrong about that then I guess I don't know the answer, but it's not Flurl bug and perhaps a better question for a Wireshark forum or Stack Overflow.
Thanks, I understand \r\n
If there is a text
"""hello
word"""
then its Ascii code is 68 65 6c 6c 6f 0d 0a 77 6f 72 64 Its length is 11 The flurl send is 68 65 6c 6c 6f 5c 72 5c 6e 77 6f 72 64 The two-character "0d 0a" becomes the four-byte "5c 72 5c 6e."
Guess: flurl does a urlencoud on the string。
Can I control this behavior?
Thank you very much for your answer.
I don't know the exact answer, but I will say that Flurl defers the heavy lifting to HttpClient, so low-level behavior like this tends to reflect HttpClient's behavior. If you can repro with HttpClient, post a question to Stack Overflow. You'll reach a much bigger audience than framing it as a Flurl question.
Please provide a complete description of the bug and a code sample (or better yet, a unit test) that reproduces it. example code
wireshark http cap
How to send this message using flurl
Here's one of the solutions I found:
https://stackoverflow.com/questions/56315725/httpclient-post-request-with-headers-and-body
thank !!