Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About NSMutableURLRequest and cookie problem #21

Open
hkayngvip opened this issue May 21, 2015 · 0 comments
Open

About NSMutableURLRequest and cookie problem #21

hkayngvip opened this issue May 21, 2015 · 0 comments

Comments

@hkayngvip
Copy link

Hello, I use the KINWebBrowser to load my web page, when using web log in, add the cookies, web pages, there is no response. Here is my code, the current class inherited KINWebBrowserViewController

NSURL *url=[NSURL URLWithString:@"http://My server login address"];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
NSString *cookieStr = [NSString stringWithFormat:@"JSESSIONID=%@;Path=/JBIZ",ShareManager.cooks];


[request addValue:cookieStr forHTTPHeaderField:@"Cookie"];

[self LoadRequst:request];

This is a web page and load cookies to complete the function of the land, but if only load Google, there is no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant