作者 主題: discuz auto post ?  (閱讀 2221 次)

0 會員 與 1 訪客 正在閱讀本文。

HaWay

  • 大隻佬!
  • 老人組
  • 俺是博士!
  • *****
  • 文章數: 3980
    • 檢視個人資料
discuz auto post ?
« 於: 2010-07-01 21:20 »
hi dear all:

我在嘗試 auto post discuz 論壇, 目前可以自動登入。
但我不知道怎麼 post 文章上去, 尤其是有附件的.
不知道有沒有人知道 discuz 的 post 方法, 我 sniffer http 後的格式是

代碼: [選擇]
Host=1.2.3.4
User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language=zh-tw,en-us;q=0.7,en;q=0.3
Accept-Encoding=gzip,deflate
Accept-Charset=UTF-8,*
Keep-Alive=115
Connection=keep-alive
Referer=http://1.2.3.4/discuz/forumdisplay.php?fid=4
Content-Type=multipart/form-data; boundary=---------------------------112471358413648
Content-Length=337571
POSTDATA =-----------------------------112471358413648
Content-Disposition: form-data; name="formhash"

ba80b47b
-----------------------------112471358413648
Content-Disposition: form-data; name="handlekey"

newthread
-----------------------------112471358413648
Content-Disposition: form-data; name="wysiwyg"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="iconid"


-----------------------------112471358413648
Content-Disposition: form-data; name="updateswfattach"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="subject"

test post
-----------------------------112471358413648
Content-Disposition: form-data; name="checkbox"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="message"

[local]1[/local]
-----------------------------112471358413648
Content-Disposition: form-data; name="attachdesc[]"


-----------------------------112471358413648
Content-Disposition: form-data; name="localid[]"


-----------------------------112471358413648
Content-Disposition: form-data; name="attachperm[]"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="attachprice[]"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="attachdesc[]"


-----------------------------112471358413648
Content-Disposition: form-data; name="localid[]"

1
-----------------------------112471358413648
Content-Disposition: form-data; name="attachperm[]"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="attachprice[]"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="attachdesc[]"


-----------------------------112471358413648
Content-Disposition: form-data; name="localid[]"

2
-----------------------------112471358413648
Content-Disposition: form-data; name="attachperm[]"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="attachprice[]"

0
-----------------------------112471358413648
Content-Disposition: form-data; name="tags"


-----------------------------112471358413648
Content-Disposition: form-data; name="readperm"


-----------------------------112471358413648
Content-Disposition: form-data; name="price"


-----------------------------112471358413648
Content-Disposition: form-data; name="usesig"

1
-----------------------------112471358413648
Content-Disposition: form-data; name="attach[]"; filename=""
Content-Type: application/octet-stream


-----------------------------112471358413648
Content-Disposition: form-data; name="attach[]"; filename="14aa4dcc7db8cf.jpg"
Content-Type: image/jpeg

yOya

請問這一長串是怎麼產生的呢?? 謝謝
我做人那麼 nice, 肯定有什麼誤會.....