|

Message


(string) Either a blank string ("") or an information message being sent by the server, such as "Resolving host name" or "Connecting to Server."


The callback function should return a boolean value (true or false) indicating whether the file access should continue:



VALUE DESCRIPTION


true


Continue with the file access.


false


Stop the file access as soon as possible.


Re t u r n s


(number) The size of the file on the Internet Web site (in bytes). If the file's size could not be retrieved, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.


See also: Related Actions


image

image

HTTP.GetHTTPErrorInfo

OverviewExamples

table HTTP.GetHTTPErrorInfo ( )


De s cr ip t ion


Retrieves HTTP specific information about the last HTTP action that was performed.


For example, if you perform an HTTP.Download and an error occurs, you can use this action to retrieve HTTP information about that error.


P arame t er s


None.


Re t u r n s


(table) A table containing the HTTP error information indexed by the following keys:



KEY


TYPE DESCRIPTION


Number


number


The WinInet error code.


Message


string


The WinInet Error string associated with the error code.


Status


number


The HTTP status code associated with the last error. Status codes are categorized into the following groups:


200-299 Success


300-399 Information


400-499 Request error


500-599 Server error


Some common HTTP Status Codes: 200 URL located, transmission follows 400 Unintelligible request

404 Requested URL not found


405 Server does not support requested method 500 Unknown server error

503 Server capacity reached

Note: The Number and Message fields in the table generally report on whether the HTTP transaction itself was successful, for example the proper parameters were passed, an internet connection existed, and the information was actually sent to the server. The Status field contains information on the overall status of the operation at the server end, such as whether the server

understood the request, and whether it was actually able to serve up the requested file.


You can use Application.GetLastError to determine whether this action failed, and why.


|