如何访问使用requestFailed/requestFinished函数请求发送的(POST)数据。访问请求发送数据,请求内部失败函数ASIHttpRequest
- (void) abc {
NSString *postString = @"john";
NSURL *url = [NSURL URLWithString:@"http://abc.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setPostValue:postString forKey:@"name"];
[request setDelegate:self];
[request startAsynchronus];
}
- (void) requestFinished:(ASIHTTPRequest *)request
{
// Question is whether the request holds the sent post values.
// If it holds. how can we access them.
// i tried using [request valueForKey:@"name"];
// but it won't work.
}
是啊从ASIHTTPREQUEST文档中得到了..无论如何感谢信息。 – divein 2012-04-22 01:54:43