I am working in a iPhone project that uses restful web services. I need to send some tracking code or version number with every request sending from iPhone side. I am thinking of adding a header value into every request, by modifying a ASIHTTPRequest class.
- Is there any method that ASIHTTPRequest providing to do this (without modifying framework files)?
- If I need to modify ASIHTTPRequest class, what is the best place to modify it? (like buildRequestHeaders.. )
Thanks.
may be you can write a new class such as MyASIHttprequest and override the method requestwithURL
or you can write a method to add the header but maybe every time you new a asihttprequest, you should call this method to add header;