ios - ASIHTTPRequest download is writing JSON error to zip -


I have a file to insert a file that is in the document directory as file_name.zip. However, if I get an error, like 'file does not exist', then the library is writing JSON payload on file_name.zip.

How do we check in requestFinished for JSON error ?

The response string or response data is always empty.

You probably want to check request.responseStatusCode and 404 error Check against but honestly you should look at AFNetworking. ASIHTTPRCEEEST is no longer supported and air force has success / failure blocks.

Comments