I want to send new-line-character as part of a value of a post request (text)variable. I am using wget to fire the request. How do I code that ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.