软件第一个脚本是调用发文章的POST如下所示:
POST /material/add.html HTTP/1.1
Host: center.testmart.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: {获取列表值}账号缓存|a|自动{/获取列表值}
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------477229795326
Content-Length: 17610
-----------------------------477229795326
Content-Disposition: form-data; name="title"
{获取列表值}标题列表|a|自动{/获取列表值}
-----------------------------477229795326
Content-Disposition: form-data; name="cid"
39
-----------------------------477229795326
Content-Disposition: form-data; name="sources"
[文本框:联系方式]
-----------------------------477229795326
Content-Disposition: form-data; name="bjqqh"
0
-----------------------------477229795326
Content-Disposition: form-data; name="content"
{获取列表值}内容列表|a|自动{/获取列表值}
-----------------------------477229795326
Content-Disposition: form-data; name="catid"
-----------------------------477229795326
Content-Disposition: form-data; name="button"
鎻愪氦
-----------------------------477229795326—
一般有分割线的POST,都是用完整发包,上面的列表代码都是直接调用列表的,他发帖都是固定的模式。
上图这个是发网站产品供应的分类:
POST /sellers/product/add.html HTTP/1.1
Host: center.testmart.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: {获取列表值}账号缓存|a|自动{/获取列表值}
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------2101193077705
Content-Length: 331657
-----------------------------2101193077705
Content-Disposition: form-data; name="hdf_kindId"
-----------------------------2101193077705
Content-Disposition: form-data; name="sel_prodkind"
111
-----------------------------2101193077705
Content-Disposition: form-data; name="sel_prodkind_snd"
144
-----------------------------2101193077705
Content-Disposition: form-data; name="catid"
595
-----------------------------2101193077705
Content-Disposition: form-data; name="cate"
-----------------------------2101193077705
Content-Disposition: form-data; name="data[custom_cat_id]"
190315
-----------------------------2101193077705
Content-Disposition: form-data; name="data[pname]"
{获取列表值}标题列表|a|自动{/获取列表值}
-----------------------------2101193077705
Content-Disposition: form-data; name="data[keywords]"
閽㈠?鍦熷伐鏍兼爡锛屽?鏂欏湡宸ユ牸鏍咃紝鍗曞悜鍦熷伐鏍兼爡锛岀幓绾ゅ湡宸ユ牸鏍咃紝娑ょ憾鍦熷伐鏍兼爡
-----------------------------2101193077705
Content-Disposition: form-data; name="data[code]"
923265
-----------------------------2101193077705
Content-Disposition: form-data; name="data[delivery]"
鐜拌揣
-----------------------------2101193077705
Content-Disposition: form-data; name="data[brand]"
-----------------------------2101193077705
Content-Disposition: form-data; name="data[price]"
1
-----------------------------2101193077705
Content-Disposition: form-data; name="data[amount]"
328792
-----------------------------2101193077705
Content-Disposition: form-data; name="pic1"; filename="2019-06-25_232546.jpg"
Content-Type: image/jpeg
<文件>{获取列表值}图1|a|自动{/获取列表值}</文件>
-----------------------------2101193077705
Content-Disposition: form-data; name="txtImg"
-----------------------------2101193077705
Content-Disposition: form-data; name="tpic"
-----------------------------2101193077705
Content-Disposition: form-data; name="uid"
412662
-----------------------------2101193077705
Content-Disposition: form-data; name="bjqqh"
0
-----------------------------2101193077705
Content-Disposition: form-data; name="introduce"
{获取列表值}内容列表|a|自动{/获取列表值}
-----------------------------2101193077705
Content-Disposition: form-data; name="holdinfo"
1
-----------------------------2101193077705
Content-Disposition: form-data; name="button"
鎻愪氦
-----------------------------2101193077705—
其实文章和产品的包是一样的,只是提交地址不同,而且他们分类和所以内容框也是一样的调用方法,你注意到了吗》?