Inet控件用法,有关“post”,http头,请帮忙,谢谢。 "Content-Type: application/x-www-form-urlencoded" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 方法一:比较简单的数据头,在WIN98、NT4.0+VB6.0下运行成功。dim strSendHeader as string '定义数据头变量dim iSendLength as string ,定义发送的数据长度变量‘以下是数据头的简单写法,包括一个发送的数据长度的变量strSendHeader = "POST /http://127.0.0.1/getresult.asp HTTP/1.1" & vbCrLfstrSendHeader = strSendHeader & "Content-Type: application/x-www-form-urlencoded " & vbCrLfstrSendHeader = strSendHeader & "Content-Length: " & iSendLength & vbCrLfInet.execute "http://127.0.0.1/getresult.asp" ,"POST",SendData,strSendHeader方法二、拦截IE发送的提交数据包,strHeader=http://127.0.0.1/getresult.asp & " HTTP/1.1" & vbCrLf _ & "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*" & vbCrLf _ & "Accept -Language: zh -cn" & vbCrLf _ & "Content-Type: application/x-www-form-urlencoded" & vbCrLf _ & "Accept -Encoding: gzip , deflate" & vbCrLf _ & "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)" & vbCrLf _ & "Host: " & 127.0.0.1 & vbCrLf _ & "Content-Length: " & iSendLength & vbCrLf _ & "Connection: close" & vbCrLf _ & "Cookie: xxxxxxxx" & vbCrLf & vbCrLf _ & RequestData & vbCrLf & vbCrLf 老是提示错误13,类型不匹配?咋修改? 溢出问题解决 这个EXCEL所有的列为什么不能被拉动? 请问如何让ListBox半透明,已经可以让Form半透明,但对ListBox无效! 紧急求救 保存字符型的变量为文本文件时,如何将每行的双引号去掉? 是我的书有问题,还是我的VB有问题呀,大家帮我看一下, 关于ActiveX EXE实例化的问题 请教一个判断FTP上是否存在文件夹和文件的API 如何在VB中加入精确的延时,十万火急!原来的帖子都打不开 如何实现文件关联 高分求解:用inet读取网页的速度问题(来者有分)
dim strSendHeader as string '定义数据头变量
dim iSendLength as string ,定义发送的数据长度变量
‘以下是数据头的简单写法,包括一个发送的数据长度的变量
strSendHeader = "POST /http://127.0.0.1/getresult.asp HTTP/1.1" & vbCrLf
strSendHeader = strSendHeader & "Content-Type: application/x-www-form-urlencoded " & vbCrLf
strSendHeader = strSendHeader & "Content-Length: " & iSendLength & vbCrLfInet.execute "http://127.0.0.1/getresult.asp" ,"POST",SendData,strSendHeader方法二、拦截IE发送的提交数据包,
strHeader=http://127.0.0.1/getresult.asp & " HTTP/1.1" & vbCrLf _
& "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*" & vbCrLf _
& "Accept -Language: zh -cn" & vbCrLf _
& "Content-Type: application/x-www-form-urlencoded" & vbCrLf _
& "Accept -Encoding: gzip , deflate" & vbCrLf _
& "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)" & vbCrLf _
& "Host: " & 127.0.0.1 & vbCrLf _
& "Content-Length: " & iSendLength & vbCrLf _
& "Connection: close" & vbCrLf _
& "Cookie: xxxxxxxx" & vbCrLf & vbCrLf _
& RequestData & vbCrLf & vbCrLf