ASP模擬POST提交資料的方法

2021-08-25 02:12:03 字數 1167 閱讀 5465

author:flymorn source:飄易

categories:asp程式設計 posttime:2009-4-7 13:21:40

文:

有時需要獲取遠端**的某些資訊,而伺服器又限制了get方式,只能通過post資料提交,這個時候我們可以通過asp來實現模擬提交post資料,飄易加工了下面的部分**,比如獲取ip138的ip資料位址資訊,**如下:

<%

onerrorresumenext'容錯處理

functiongetbody(ips)'飄易-獲取遠端ip位址post資訊

functionbytestobstr(body,cset)'飄易:轉換gb2312

dimobjstream

setobjstream=server.createobject("adodb.stream")

objstream.type=1

objstream.mode=3

objstream.open

objstream.writebody

objstream.position=0

objstream.type=2

objstream.charset=cset

bytestobstr=objstream.readtext

objstream.close

setobjstream=nothing

endfunction

response.writegetbody("61.186.177.105")

%>

php模擬post提交資料

php模擬post提交資料,用處很多,可用來 的採集,登陸等等。以程式登陸乙個論壇登入為例 php post資料的三種方法 php有三種方法可以post資料,分別為curl socket file get contents socket版本 使用方法 request by socket facebo...

php curl模擬post請求提交資料

摘要 最近在做校園圖書館圖書資訊的採集程式,既然是圖書館圖書的採集,肯定有提交搜尋的頁面,無非是post提交,讓我想到了curl模擬提交,首先通過firebug進行抓包查詢下post提交後的格式如下 txtwxlx cn hidwxlx spancnlx 最近在做校園圖書館圖書資訊的採集程式,既然是...

php curl模擬post請求提交資料

最近在做校園圖書館圖書資訊的採集程式,既然是圖書館圖書的採集,肯定有提交搜尋的頁面,無非是post提交,讓我想到了curl模擬提交,首先通過firebug進行抓包查詢下post提交後的格式如下 txtwxlx cn hidwxlx spancnlx txtpy hz txttm d2 f4 c0 d...