The request header can pass some information that the web wants, but this method has some limitations, if the Web jumps when the header information will be message, the best way is to customize the cookie pass value
nsurl* url = [Nsurl URLWithString:self.url];
Nsmutableurlrequest *request = [[Nsmutableurlrequest Alloc]initwithurl:url];
NSString *body = [NSString stringWithFormat: @ "uuid=%@&sessionid=%@", Uuid,sessionid];
[Request Sethttpbody: [body datausingencoding:nsutf8stringencoding]];
[Request Sethttpmethod: @ "POST"];
[Self.mywebview Loadrequest:request];
[Self.view AddSubview:self.myWebView];
Custom Ccokie Pass Values
Define the host to which the cookie will be set
nsurl* url = [Nsurl URLWithString:self.url];
Nsurl *cookiehost = [Nsurl URLWithString:self.url];
Nsdictionary *dic = @{@ "uuid": uuid,@ "SessionID": sessionid,@ "Feedid": self.feedid,@ "softversion": softversion,@ " DeviceType ":d eviceid,@" Touuid ": Self.touuid};
[DIC enumeratekeysandobjectsusingblock:^ (ID key, id obj, BOOL *stop) {
Set cookies
Nshttpcookie *cookie = [Nshttpcookie cookiewithproperties:
[Nsdictionary Dictionarywithobjectsandkeys:
[Cookiehost host], Nshttpcookiedomain,
[Cookiehost Path], Nshttpcookiepath,
Key,nshttpcookiename,
Obj,nshttpcookievalue,
Nil]];
[[Nshttpcookiestorage Sharedhttpcookiestorage] Setcookie:cookie];
}];
[Self.mywebview loadrequest:request];//loading
[Self.view AddSubview:self.myWebView];