如何訪問使用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