首页 » Posts tagged 'post'

标签:post

捕获UIWebView所POST的数据

低调的术木 | iOS 开发 | 2013-05-18
//获取请求数据 - (BOOL) webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSLog(@"%@", [request allHTTPHeaderFields]); NSLog(@"%@", [request HTTPBody]); return YES; } 这样获取的是二进制的, //转... [阅读全文]

IOS开发之Post 方式获取服务器数据

低调的术木 | iOS 开发 | 2013-05-18
//1.创建post方式的 参数字符串url +(NSString *)createPostURL:(NSMutableDictionary *)params { NSString *postString=@""; for(NSString *key in [params allKeys]) { NSString *value=[params objectForKey:key]; postString=[postString stringByAppendingFormat:@"%@=%@&",key,value]; } if([postString l... [阅读全文]
Ɣ回顶部