asp,Msxml2.xmlHttp,Post

发布:2011-03-30 17:31   点击359次   评论:0

Function retuText(send_URL,user,pw)
  PostStr = "?a=b&u="&user&"&p="&pw
  Response.Write "<br>"&Len(PostStr)&"<br>"
  Set Retrieval = Server.CreateObject("Msxml2.xmlHttp") ''Microsoft.XMLHTTP
  With Retrieval
 .Open "POST",send_URL,False," ", " "
 .setRequestHeader "Content-Length",len(PostStr)
 .setRequestHeader "CONTENT-TYPE", "application/x-www-form-urlencoded"
 .Send(PostStr)
 retuText = .ResponseText
  End With
  Set Retrieval = Nothing
End Function




s = ""
for i=1 to 4200
  s=s&i&";- "
next
a1 = "http://www.dg.gd.cn/dgnews/view.asp?ID=132DBFA55DB7BATE133KPWKH"
a2 = "http://localhost:240/u/demo/ext/xtemp/http-get.asp"
ad = a2
user = "test12"
pw = "pw123423"&s

te=retuText(ad,user,pw)
Response.Write "<br>"&Len(te)&"<br>"
Response.Write te&Now()
Response.End()

关于 GitHub 导航 部门 反馈

提示:`/home.php`入口数据仅为演示功能,不构成任何交易凭证,也不承担相关风险和责任!

Copyright © 2011-2018 xxxxx.com All rights reserved.

Run:4.136/34.504(ms); 7(sql)/2.877(MB); comm:news/detail; Upd:2024-05-05 18:39:29