websave
将内容从RESTFUL Web服务保存到文件
Syntax
OUTFILENAME = WESTAVE(文件名,URL)
OUTFILENAME = WESTAVE(文件名,URL,queryname1,queryvalue1,...,querynamen,queryvaluen)
OUTFILENAME = WESTAVE(___,options)
描述
OUTFILENAME = WESTAVE(
干腊肠es content from the web service specified byfilename
,URL
)URL
并写信给filename
。这websave
功能将完整的文件名路径返回outfilename
。
这web service provides aRESTful APIthat returns data formatted as an internet media type such as JSON, XML, image, or text.
OUTFILENAME = WESTAVE(
appends query parameters tofilename
,URL
,queryname1,queryvalue1,...,querynamen,queryvaluen
)URL
,如一对或多对名称值参数所指定的。Web服务定义查询参数。
OUTFILENAME = WESTAVE(___,
adds other HTTP request options, specified by the选项
)weboptions
object选项
。You can use this syntax with any of the input arguments of the previous syntaxes.
websave
supports HTTP GET and POST methods. To send an HTTP POST request, specify theRequestMethod
property of选项
as'邮政'
。Many web services provide both GET and POST methods to request data.
例子
输入参数
More About
提示
For functionality not supported by the RESTful web services functions, see theHTTP Interface。
For HTTP POST requests, the
websave
function supports only the应用/X-WWW-Form-urlenCoded
media type. To send a POST request with content of any other internet media type, useWebwrite
。