-1

如何NSString从 iPhone 发送一个远程 php 脚本?

4

1 回答 1

2
NSString *urlStr = @"http://host.com/script.php?text=This+is+some+text";
NSURL *url = [NSURL URLWithString:urlStr];
NSString *response = [NSString stringWithContentsOfURL:url];

NSLog(@"The server responded: %@", response);
于 2012-08-19T13:49:05.130 回答