asihttprequest

Ad Hoc iPhone SIGSEGV crash while Debug on device & simulator works

这一生的挚爱 提交于 2019-12-22 14:51:46
问题 App crashes immediately after I attempt to login so it can’t a be a watchdog memory issue Reason: _mh_execute_header App crashes upon attempting to make a network request using ASIHTTPRequest. Request never touches server. ASIHTTPRequest: I use -fno-objc-arc to omit ASIHTTPRequest from ARC. I believe that the following call is causing my problems since my call never even touches the server when I make a request. Any help would be greatly appreciated! Call: NSDictionary *response = [

Ad Hoc iPhone SIGSEGV crash while Debug on device & simulator works

拥有回忆 提交于 2019-12-22 14:51:03
问题 App crashes immediately after I attempt to login so it can’t a be a watchdog memory issue Reason: _mh_execute_header App crashes upon attempting to make a network request using ASIHTTPRequest. Request never touches server. ASIHTTPRequest: I use -fno-objc-arc to omit ASIHTTPRequest from ARC. I believe that the following call is causing my problems since my call never even touches the server when I make a request. Any help would be greatly appreciated! Call: NSDictionary *response = [

ASIHTTPRequest and AFNetworking in 2013. What to choose? [closed]

与世无争的帅哥 提交于 2019-12-22 12:54:39
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I'm in the beginning of developing a large iOS project which is heavily network based. And I'm interested what framework should I choose now. I see a lot of posts on SO about it: ASIHTTPRequest vs AFNetworking framework and etc. But they are all old. And I also read this:http

Download and cache entire web page on ios

佐手、 提交于 2019-12-22 11:22:05
问题 I need to download an entire webPage and store it in app's documents directory and load it from the cache the next time user visits. No matter how much I search, I always end up with ASIWebPageRequest..!! even though, it works, its very old and deprecated.So I am looking for some alternatives. Another reason I am trying to avoid it is because .... It is a completely reimplemented URL loading system, based on very low level constructs (CFNetwork). So as Apple makes improvements to their high

Empty body in POST in ASIHTTPRequest

亡梦爱人 提交于 2019-12-22 06:29:39
问题 Basically, I am sending a POST request with an empty data body: ASIHTTPRequest *request [ASIHTTPRequest alloc] init]; [request setURL:[NSURL URLWithString:escapedUrlString]]; [request setRequestMethod:@"POST"]; [request addRequestHeader:@"Content-Type" value:@"application/xml"]; [request startSynchronous]; But i am getting this response each time: Incorrect NSStringEncoding value 0x0000 detected. Assuming NSStringEncodingASCII. Will stop this compatiblity mapping behavior in the near future.

PHP - Saving Uploaded Image to Server

风格不统一 提交于 2019-12-21 23:20:09
问题 I am trying to save an uploaded image from an iPhone to a server using PHP. I am using ASIHTTPRequest to handle the data request. This is my iPhone code: [request setPostValue:someString forKey:@"string1"]; [request setPostValue:anotherString forKey:@"string2"]; [request addData:[NSData dataWithData:UIImageJPEGRepresentation(anImage, 0.9)] withFileName:@"img.jpg" andContentType:@"image/jpeg" forKey:@"img"]; [request startSynchronous]; On the server side, I am using this PHP code currently to

Parse JSON data using Asihttprequest and the Json framework for iphone

拟墨画扇 提交于 2019-12-21 05:34:08
问题 I've been learning how to parse JSON using the JSON framework and ASIHTTPRequest for iOS. I've tested using twitter feeds and also a custom feed through a community tutorial. All is going well. I then thought I'll test using the Microsoft Odata Service for Northwind db. You can view the json results here: http://jsonviewer.stack.hu/#http://services.odata.org/Northwind/Northwind.svc/Products%281%29?$format=json Now I've struggling to work out how to parse just the product name. Can anyone

iPhone ASIHTTP - Distinguishing between API calls?

ε祈祈猫儿з 提交于 2019-12-20 14:36:28
问题 I currently have a view controller that implements ASIHTTP for handling API calls. My view controller fires 2 separate calls. I need to be able to distinguish between the 2 calls in the -requestFinished(ASIHTTPRequest*)request method, so I can parse each one accordingly... Is there any of doing this? 回答1: Use the userInfo field! That's what it's for! An ASIHTTPRequest (or an ASIFormDataRequest) object has a property called .userInfo that can take an NSDictionary with anything in it you want.

Good pattern for Internet requests with Grand Central Dispatch?

穿精又带淫゛_ 提交于 2019-12-20 10:37:02
问题 I'm currently using synchronous ASIHTTPRequest with GCD queues to download data from the Internet, then parse the response data with JSONKit. What do you think about this pattern. Thank you in advance. Here is my code: dispatch_async(queue, ^(void) { // Request is ASIHTTPRequest. [request startSynchronous]; // Parse JSON. NSArray *array = [[request responseData] objectFromJSONDataWithParseOptions:JKParseOptionLooseUnicode]; // Callback on the main queue to update UI. dispatch_async(dispatch

Is that possible to download google derive files without integration with ios

☆樱花仙子☆ 提交于 2019-12-20 07:14:04
问题 Is that possible to download files from google drive without integrate it's sdk (class files) or authentication. Consider following scenario: I Used UIWebView in mysample application. I am logged in to Google Drive through UIWebView (Like logged in to google drive same as browser logged in). Now i want to download google drive documents in to mysample application document folder. Problem: When i am trying to download file from google drive it will now downloaded (I am using nsurl connection