Determines if an error occurred in an HTTP communication
如果发生在HTTP通信中的一个错误决定
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This examines the HTTP header information (computed via the curlPerform call that implements the HTTP communication with the SOAP server) and determines if there was an error reported from the server.
检查HTTP头信息(通过curlPerform调用,实现了与SOAP服务器的HTTP通信计算),并确定是否有错误报告从服务器。
用法----------Usage----------
isHTTPError(response)
参数----------Arguments----------
参数:response
the header information computed by collecting the header lines from the SOAP server's HTTP response. This is currently done via the call to curlPerform in the .SOAP function.
通过收集来自SOAP服务器的HTTP响应头线的头信息计算。这是目前完成通过curlPerform.SOAP功能的调用。
Details
详情----------Details----------
This just looks at the status entry and compares it to the value 200.
这只是看起来status和它的价值200进行比较。
The curlPerform is capable of performing redirections, etc. to handle manageable errors. See the options for that function.
curlPerform是能够执行重定向等处理管理错误。看到该功能的选项。
值----------Value----------
A logical value indicating whether there was an error (TRUE) or not (FALSE).
一个逻辑值,该值指示是否有错误(TRUE)或不(FALSE)。
作者(S)----------Author(s)----------
Duncan Temple Lang <duncan@wald.ucdavis.edu>