cocoa - NSUrlREquest adding customised header -


how can add http header in nsurlrequest. using

[newrequest addvalue:@"my-app" forhttpheaderfield:@"nativeapp"]; [newrequest setvalue:@"my-app" forhttpheaderfield:@"nativeapp"]; 

i able see previous predefined headers. not able add them. how can add own header?

i got answer sending wrong request delegates. after adding need send new nsurlrequest.

-(nsurlrequest *)webview:(webview *)sender resource:(id)identifier willsendrequest:(nsurlrequest *)request redirectresponse:(nsurlresponse *)redirectresponse fromdatasource:(webdatasource *)datasource {

}


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -