# Re: 请问为何Inet.Exec无法将附带的资料送到远端Asp主机

Posted by 小郭 on July 20, 1998 at 22:42:48:

In Reply to: Re: 请问为何Inet.Exec无法将附带的资料送到远端Asp主机 posted by Maxwell on July 15, 1998 at 23:41:24:

谢谢您在VB讨论区的回答
但我试了却出现错误讯息:35760
程式码如下:能否再请您指正
DIM URL AS STRING
DIM SETDATA AS STRING
DIM SETHEAD AS STRING

URL="http://203.69.75.1/tpn/tpnasp/dowebcall.asp"
SETDATA="ID=811970&Msg=1234567"

SETHEAD = "Accept: www/source" & vbCrLf & _
"Accept: text/html" & vbCrLf & _
"Accept: text/plain" & vbCrLf & _
"User-Agent: Mozilla/3.0" & vbCrLf & _
"Content-type: application/x-www-form-urlencoded" & vbCrLf & _
"Content-length: " & Len(SETDATA) & vbCrLf

Inet1.Execute URL, "POST", SETDATA, SETHEAD

谢谢!

小郭 敬上 kuo@suncomp.com.tw

Follow Ups: