I use an ASIFormDataRequest to log into the server, managing the response inside requestFinished method. If the response is ok, I need to launch another request to the server to download a JSON. Where should I manage the response (since I am launching the second request from the requestFinished method…)? Should make the second request synchronous? (if i am right, that would get the response from the server without a requestFinished method)
Any advise? Thank you.
You can do it like this:
You basically define the success/failure selectors. The
ASIHTTPRequest“How to use” section.Update 1.0
This is the default handler for the request finished. I think you will receive it as well with the “custom” selectors.