主题:  谁用过PostURL

dhbin

职务:普通成员
等级:1
金币:0.0
发贴:59
注册:2003/3/6 10:19:44
#12009/1/17 9:41:31
请高手指点一下,能给个实际的例子是最好了。



燕云

职务:普通成员
等级:2
金币:10.0
发贴:600
注册:2001/5/12 1:31:32
#22009/1/22 15:21:49
PostURL

语法:string:=PostURL("URL","content" [,time-out])

说明:将指定内容发送到指定的URL,并返回结果字符串。参数time-out用于设置超时时间,默认值为30秒。如果不需要返回结果字符串,可以将time-out设置为“0”。该函数的执行影响到两个系统变量:IOStatus和IOMessage。


云网媒体【YZCNET.COM】云网媒体开展软件技术、互联网技术、电子商务技术、多媒体设计等服务; 其中包括 :软件开发、网站建设、手机服务、多媒体设计、 图片及演示文稿服务等;

dhbin

职务:普通成员
等级:1
金币:0.0
发贴:59
注册:2003/3/6 10:19:44
#32009/2/5 16:03:34
帮我看一下
timu:=ReadURL("http://br168.eicp.net/GetInfo1.asp?nickname=fert",120)
timu1:=PostURL("http://br168.eicp.net/GetInfo2.asp","nickname=fert",120)
其中ReadURL可以成功,POSTURL却不行,为什么?
我在IE中试过,getinfo2.asp可以运行,应该没有问题。



燕云

职务:普通成员
等级:2
金币:10.0
发贴:600
注册:2001/5/12 1:31:32
#42009/3/18 16:26:18
PostURL only works in a Web-packaged piece and not in runtime development.
PostURL supports the POST method and not the GET method. If you want to use
GET, use ReadExtFile() or ReadURL(). ReadURL only works in Authorware 5
Attain.
The script must return a value to Authorware.
The length of the URL is limited to 2K, the content is limited to 30K, and
the return string is limited to 32K.
If you get a returning 5006 error message, the URL is probably incorrect or a
value is not being returned.
The content argument does not refer to content type, but to the content that
you are sending to the script.


云网媒体【YZCNET.COM】云网媒体开展软件技术、互联网技术、电子商务技术、多媒体设计等服务; 其中包括 :软件开发、网站建设、手机服务、多媒体设计、 图片及演示文稿服务等;