Can anyone explain me the role of addRequestHeader method of ASIHTTPRequest class? Why do we need it?
P.S. Browsing over google and stackoverflow i see lots of people familiar with details of ASIHTTPrequest library. Where do you take the information?
Without any knowledge about that class, but most likely the method is used to send a custom header.
For example, when accessing a web service that is usually only hit through XHRs from JavaScript, it might require you to add a
X-Requested-With: XMLHttpRequestheader.