I access the API via HTTP and use ASIHTTPRequest. To access the API, I have to send additional headers, which I add with the following:
[request addRequestHeader:@"Access-Key" value:@"1234"];
These headers should be sent with every request. When I redirect, these headers are lost, so I would like to set them again. Is it possible to install them again before the redirect request is completed?
When I implement the request - (void): (ASIHTTPRequest *) requestRedirectToURL: (NSURL *) newURL , the request is canceled after calling this delegate function. This is mistake? I am using version v1.8.1-8 2011-06-05.
Thank you for your help!
source
share