Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何NSString从 iPhone 发送一个远程 php 脚本?
NSString
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);