I am using ASIHttpRequest and make use GET method to send header to server. I call method addRequestHeader like this
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request addRequestHeader:@"myHeader" value:@"abc"];
It's not working. But if I use NSMutableURLRequest to add header and request to server, it works. I don't know anything wrong when calling addRequestHeader methods for ASIHTTPRequest library. Have anyone seen this issue?
ASIHttpRequest.AFNetworking,NSURLSession, and goodnessNSURLConnectionall have modern APIs that will solve your problems without using an outdated and unsupported library likeASIHTTPRequest. - Wayne Hartman