ASIHTTPRequest provides a small number of macro tags that help debug request behavior. These macros can be found in the ASIHTTPRequestConfig. h file.
When these flags are opened, the request will print some information to the console to show what they are doing.
DEBUG_REQUEST_STATUS
Print all information about the request lifecycle, start, end upload, and end download.
DEBUG_THROTTLING
Print the total traffic used by the request). If the request traffic is controlled, print how it is controlled. When used with DEBUG_REQUEST_STATUS, this item can be used for debugging "timeout". You can see the time when the request stops sending or receiving data.
DEBUG_PERSISTENT_CONNECTIONS
Print the request to reuse the persistent connection information. If you see the following information:
Request attempted to use connection #1, but it has been closed-will retry with a new connection
This indicates that the persistentConnectionTimeoutSeconds you set is too large.
DEBUG_HTTP_AUTHENTICATION
New Features of version 1.8.1: enabling this option will print information about how the request processes HTTP Authorization Basic, Digest, or NTLM.
DEBUG_FORM_DATA_REQUEST
Print the entire request body that ASIFormDataRequest will send. This item is useful when you use ASIFormDataRequest.