Newline character in post request

梦想的初衷 提交于 2019-12-12 10:36:47

问题


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.



来源:https://stackoverflow.com/questions/6262275/newline-character-in-post-request

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!