JPRequest - 發送和接收POST與GET數據至WebService
JPRequest 是簡單的多線程 Objective-C 對象,用來發送 POST 數據到 webservice 或者從 webservice 接收 GET 數據。
-(void)yourFunctionName { // POST request example NSString *replyPOST = [JPRequest postRequestWithUrl:@"http://www.example.com" andPostData:@"parameter1=1¶meter2=2"]; // GET request example NSString *replyGET = [JPRequest getRequestWithUrl:@"http://www.example.com"]; }
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!