webview链接 get和post请求传值给链接的页面
来源:互联网 发布:java中的泛型机制 编辑:程序博客网 时间:2024/06/08 02:10
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
- webview链接 get和post请求传值给链接的页面
- iOS webview get和post请求传值给链接的页面
- iOS开发 -- GET 和 POST请求(同步异步链接)
- Apache 大三方法HTTP请求链接响应之HttpClient的GET和POST工具类封装
- Java 请求(Post/Get) Url链接
- Android——HttpClient 实现POST和Get请求,Connection链接
- 链接的请求方式 是get
- get和post方式的提交过程图(补充)(jquery的post 、get for的get post 、链接的get、window.open)
- Get请求和Post请求的区别
- POST请求和GET请求的区别:
- Get请求和Post请求的区别
- GET请求和POST请求的区别
- get请求和post请求的区别
- get 请求和post请求的区别
- get请求和post请求的区别
- HttpUrlConnection的GET请求和POST请求
- Get请求和Post请求的区别
- HTTP的GET请求和POST请求
- java web工程web.xml配置详解
- FZU 2144 Shooting Game (贪心区域划分)
- Hdu 1437 天气情况【概率dp】
- java中的do……while……语句
- c++ 开发常用开源库
- webview链接 get和post请求传值给链接的页面
- Windows文件操作【C/C++】
- 变态的静态资源缓存与更新(超详细好文)
- mac使用sshfs挂载linux虚拟机上的文件夹
- 按字母顺序排序输出
- vc++/C++操作mysql数据库一些注意事项
- 字符常量内存分配
- NYOJ-106背包问题
- 手把手教你做一个Shell命令窗口