发布请求中的换行符

时间:2011-06-07 08:03:12

标签: post newline wget

我想发送新行字符作为post request(text)变量值的一部分。我正在使用wget来发出请求。我该如何编码?

1 个答案:

答案 0 :(得分:15)

根据the W3C spec,您可以使用%0D%0A格式将换行符编码为x-www-form-urlencoded - 这是您将--post-data选项交给wget。