http://www.aa.com/aa.asp
我想使用winsock模仿form的post 或 get方式向asp程序发送请问应该怎么办???
thanks
我想使用winsock模仿form的post 或 get方式向asp程序发送请问应该怎么办???
thanks
解决方案 »
- 这咋办用了个外部的美化控件结果Enabled 属性没有
- Animation空间如何播放avi文件呀?
- 使用winsock控件组发送数据时不是所有的client都能接受到数据
- 写了一个小的管理程序,数据库用的是ACCESS!编译成EXE后,运行它之后关闭,可是在任务管理器里应用程序和进程还是存在,这样的话,开一
- 如何在程序中加入MSRDP控件? (Remote Desktop)
- 请问我打包的时候用到一个第三方控件,安装的时候却提示注册错误,请问怎么会事?
- 求助,如何解决错误462:远程服务器不存在或不可获得
- 怎么创建或复制新的表?---------在线等待!!!
- 用VB抓取网页XML中一个字段的值
- 请高手教路??
- vb中word问题
- 如何限制移动窗体??
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Alexa Toolbar)
Host: 127.0.0.1:5050
Connection: Keep-Alive其中第一行中的index.asp就是你要请求的页面,可以更改
Dim xml As Object
Private Sub Command1_Click()
Call AccessNet
End SubPrivate Sub AccessNet()
On Error Resume Next
Dim str1 As String
Set xml = CreateObject("MSXML2.XMLHTTP")
xml.open "POST", "http://yourWeb/handle.asp", Falsexml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"xml.send "UserName=" & Text1.Text & "&Password=" & Text2.textIf xml.Status = 200 Then
str1 = StrConv(xml.responseBody, vbUnicode)'返回的内容
MsgBox str1
End If
End Sub