开发者

Newline character in post request

开发者 https://www.devze.com 2023-03-11 23:28 出处:网络
I want to send new-line-character as part of a value of a post request (text)varia开发者_Go百科ble. I am using wget to fire the request. How do I code that ?According to the W3C spec, you encode a lin

I want to send new-line-character as part of a value of a post request (text)varia开发者_Go百科ble. I am using wget to fire the request. How do I code that ?


According to the W3C spec, you encode a line break as %0D%0A in the x-www-form-urlencoded format -- which is what you hand to the --post-data option to wget.

0

精彩评论

暂无评论...
验证码 换一张
取 消