iOS webview get和post请求传值给链接的页面
来源:互联网 发布:淘宝搜索页广告位价格 编辑:程序博客网 时间:2024/06/13 21:54
iOS webview链接 get和post请求传值给链接的页面
get请求
url = [[ NSURL alloc] initWithString:@"http://www.********.com.cn:8081/index.php/Account/iphoneTopup?email=a@a.com&password=1&amount=12"];[WebView loadRequest:[ NSURLRequest requestWithURL: url ]]; //习惯采用loadRequest方式,你可采用其他方式
post请求
NSURL *url = [NSURL URLWithString: @"http://www.*******.com.cn:8081/index.php/Account/iphoneTopup"];NSString *body = [NSString stringWithFormat: @"email=%@&password=%@&amount=%@",@"a@a.com",@"1",@"12"];NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL: url];[request setHTTPMethod: @"POST"];[request setHTTPBody: [body dataUsingEncoding: NSUTF8StringEncoding]];[WebView loadRequest: request];
0 0
- iOS webview get和post请求传值给链接的页面
- webview链接 get和post请求传值给链接的页面
- iOS开发 -- GET 和 POST请求(同步异步链接)
- iOS 的GET和post请求
- ios 的post和get请求
- IOS get请求和post请求的用法和区别
- iOS GET请求和POST请求
- IOS 请求服务器的两种方法GET 和 POST
- ios http中post和get请求的区别
- IOS 基础的post 和 get网络请求总结
- IOS中GET和POST请求方式的差异
- iOS-HTTP 请求方式: GET和POST的比较
- ios发送http GET和POST请求
- iOS 之get和post请求
- iOS 发送GET和POST网络请求
- iOS 中GET 和 POST 请求
- iOS中GET 和 POST 数据请求
- iOS get post请求
- STL编程题1(C++程序设计第8周)
- hdoj1597find the nth digit
- 2016/01/04本周工作计划
- Apache Karaf开启ssl Https
- 值得推荐的android开源框架
- iOS webview get和post请求传值给链接的页面
- 面试题40:数组中的逆序对
- 计算机网络学习(四)——链路层
- Android开发总结笔记 自定义View的编写 3-8
- eclipse中选中字段,其他相同字段被覆盖的颜色修改
- Android:操作联系人
- Java获取视频的时长——日期时间处理
- iconfont.cn中字体图标的问题
- Android应用开发SharedPreferences存储数据的使用方法