关于Web发布时提交纯文本POST数据的设置方式

作者:小文 发布于:2013-8-15 16:59 Thursday 分类:功能介绍

有的网站的数据提交方式是使用纯TXT或其它方式提交的,所以用v8的表单方式是直接处理不了的,如下

 

POST http://blog.youdao.com/dwr/exec/outfoxAjaxWrapper.getDetailedSummary.dwr HTTP/1.1

Host: blog.youdao.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 QQDownload/1.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: text/plain; charset=UTF-8
Referer: http://blog.youdao.com/search?q=%E5%85%A5%E5%85%9A%E7%94%B3%E8%AF%B7%E4%B9%A6&t=a
Content-Length: 618
Pragma: no-cache
Cache-Control: no-cache

callCount=1
c0-scriptName=outfoxAjaxWrapper
c0-methodName=getDetailedSummary
c0-id=6738_1287908353987
c0-param0=string:%25E5%2585%25A5%25E5%2585%259A%25E7%2594%25B3%25E8%25AF%25B7%25E4%25B9%25A6
c0-param1=string:description%253A%2522%25E5%2585%25A5%25E5%2585%259A%2B%25E7%2594%25B3%25E8%25AF%25B7%25E4%25B9%25A6%2522%257E5%2Btitle%253A%2522%25E5%2585%25A5%25E5%2585%259A%2B%25E7%2594%25B3%25E8%25AF%25B7%25E4%25B9%25A6%2522%257E5
c0-param2=string:%25E5%2585%25A5%25E5%2585%259A%2509%25E7%2594%25B3%25E8%25AF%25B7%25E4%25B9%25A6
c0-param3=string:C8B3583B48911F2C
c0-param4=boolean:false
c0-param5=string:UTF-8

xml=true

 

不过V8也提供了一种变通的实现方式。双击插件设置,可以看到一种发布方式,选择 txt/plain 方式。

点击查看原图

然后在内容发布参数中如此设置,结果会如何呢?

点击查看原图

可以看到,结果是表单名和表单值直接合并到了一块,然后每个表单之间以换行相连。

点击查看原图

标签: post

发表评论:

Powered by emlog