Developer --> Technical Publications

     


Obtaining Data Transfer Information

You can use these functions to determine the error code returned when a data transfer operation fails, determine the status of a data transfer operation, yield time so that the URL Access Manager can refill its buffers, or get information about a file.

You may want to call the function URLGetError when a data transfer operation fails. URLGetError passes back the error code associated with the failed transfer, which may be a system error code, a protocol-specific error code, or one of the error codes listed in "URL Access Result Codes".

If you wish to determine the status of a data transfer operation, you should call the function URLGetCurrentState . You may wish to call URLGetCurrentState periodically to monitor the status of a download or upload operation.

The function URLGetFileInfo obtains the file type and creator codes for a specified filename. The type and creator codes are determined by the Internet configuration mapping table and are based on the filename extension. For example, if you pass the filename "jane.txt ", URLGetFileInfo will return 'TEXT' in the type parameter and 'ttxt' in the creator parameter.


© 2000 Apple Computer, Inc. (Last Updated 20 July 2000)