iOS UIWebView加载POST请求

释放双眼,带上耳机,听听看~!
    NSURL *url = [NSURLURLWithString:@"http://******.html"];

    NSString *body = [NSStringstringWithFormat:@"contractCaptainName=%@&contractTeamMemberNames=%@&contractObjectName=%@&contractMandatorName=%@",@"**",@"**",@"**",@"**"];
NSMutableURLRequest *request = [[NSMutableURLRequestalloc]initWithURL: url];

    [request setHTTPMethod: @"POST"];

    [request setHTTPBody: [bodydataUsingEncoding: NSUTF8StringEncoding]];

    [_webView loadRequest: request];

 

人已赞赏
iOS文章

xcode提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法

2020-5-1 10:16:51

iOS文章

lt;libxml/tree.hgt; file not found

2020-5-1 11:31:57

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索