asihttprequest

ASIHTTPRequest: Receive delegates from several requests within a network queue

Hi, I use ASINetworkQueue to send two requests, which are in a queue. My problem is, that I'm not able to receive notifications when a request fails/is done. Code: [networkQueue cancelAllOperations]; [networkQueue setShowAccurateProgress:YES]; [networkQueue setUploadProgressDelegate:self.progressIndicator]; [networkQueue setDel...

How do I detect a HTTP response, parse the xml and save to a NSString?

I've been trying to figure this out for weeks and i still get nothing. I am using the ASIHTTPRequest and ive successfully sent the data to a server and now I need to get the response XML,parse it and save the elements to each labeled NSString so I can post it to the server. Does anyone have an idea on how to do this? ...

ASIHTTPRequest: Encoding in post data

I'm using ASIHTTPRequest to send a form this way: ASIFormDataRequest *request = [[[ASIFormDataRequest alloc] initWithURL:url] autorelease]; [request setPostValue:foo forKey:@"post_var"]; How can I set the encoding of the nsstring foo?? The web receiving the form data expects the value in ISOLatin1 ...

UI Freezing on ASINetworkQueue request

I am using ASIHTTpREQUEST I am adding about 10 requests to ASINetworkQueue and calling go ( exactly like in the sample code ) . But as soon as my queue starts my iphone ui totally freezes and "unfreezes" only when queue is done . I want my UIAction to take priority over network activity . Should i be doing/ setting something else ? ...

iPhone and ASIHTTPRequest - Unable to start HTTP connection

Hi I am using the ASIHTTPRequest class in order to communicate with a web service and get a response. This is how I send a request to the server NSString *str = [NSString stringWithFormat:@"%@verifyLogin.json", serverUrl]; NSURL *url = [NSURL URLWithString:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; ASIHTTPRe...

iPhone ASIHTTPRequest supports https?

Hi all Does the iPhone librarby ASIHTTPRequest supports https protocol? Thank you ...

ASIS3request Amazon S3 XML format error

Dear Hepler, I am using ASIS3request to upload a photo from iphone to Amazon S3 service. Basically I followed the instruction on documentation. However I gets the following error. "The XML you provided was not well-formed or did not validate against our published schema". For your reference I attached a code below. ASIS3Request...

ASIHttpRequest NetworkQueue problem

Hey Guys, I want to use the ASIHttprequest library to download some files, I am testing with their code and it is not working while the same code works on their sample this is my code to call their view QueueViewController *queueViewController = [[QueueViewController alloc] initWithNibName:@"Queue" bundle:nil]; [self.vie...

Using JSON with Objective-C to access web services.

Hi, I am refering this link to access my JAX-WS web services. JSON-RPC Bridge to XML Web Services and usage in Objective-C in iPhone. I have successfully integrated my Web services with JSON Bridge. I have also tested it with Firebug, it works fine. Now I am trying to access it with iPhone however I get an error at: ASIHTTPRequest *r...

iPhone: Get Response From Finished Request [ASIHttpRequest]

Hello all. I am attempting to use ASIHttpRequest with the iPhone to get some information from a query-string based API on my site. Currently, I am in the planning stages of my design and I am kind of stuck on how I should proceed. I would like to have a class, that will handle all of the requests I will need. I plan on having differe...

Uploading to Ruby on Rails from iPhone using ASIHTTPRequest

Hi, I've really hit a wall and am need of some help! Thankyou for reading this far! I'm in the middle of writing an app that talks to my ROR web-server for database requests and works great thanks to ActiveResource. But I now need to also upload files to the server, and I plan to use ASIHTTPRequest which looks great, my problem thoug...

ASIHTTPRequest code design

I'm using ASIHTTPRequest to communicate with the server asynchronously. It works great, but I'm doing requests in different controllers and now duplicated methods are in all those controllers. What is the best way to abstract that code (requests) in a single class, so I can easily re-use the code, so I can keep the controllers more simpl...

How can I add HTTP request caching to an application using ASIHTTPRequests?

I'm using ASIHttpRequests and an ASINetworkQueue in an iphone app to retrieve some 100k XML files and a lot of thumbnails from a web service. I'd like to cache the requests in the style of NSURLCache. ASI doesn't seem to support caching as is, and I looked at the code and it drops to C to create the requests, so inserting the NSURLCache ...

Is the ASIHTTPRequest is not asynchronous ?

Hi all , I am using ASIHTTPRequest to fetch some data from a web service. I am making requests using a loop. The problem is that it doesn't seem the request is going asynchronously so that my activityindicator is not working . Is it true that ASIHTTPRequest is not asynchronous . or should i use the regular nsmutablerequest to perfor...

Setting an NSURL with %@ making value equal to %@ instead of inserting %@

Hi, I'm using ASIHTTP and trying to perform a GET request for a site: NSURL *url = [[NSURL URLWithString:@"/verifyuser.aspx?user=%@" relativeToURL:@"http://domain.com"],userName retain]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setTemporaryFileDownloadPath:@"myfile2.txt"]; [request setDownloadDesti...

ASIHTTPRequest crash in ASIInputStream forwardInvocation:

Does somebody else has randomly seen crashes in ASIInputStream forwardInvocation: during the use of ASIFormDataRequest? (the request was startAsynchronous) Here is the backtrace: #0 0x95877b83 in CFRunLoopSourceSignal () #1 0x958daa45 in _CFStreamScheduleWithRunLoop () #2 0x9588d05d in __invoking___ () #3 0x9588cfc8 in -[NSInvocati...

ASIHTTPRequest and ASP.NET

Hello, I need to upload files from iPhone to my ASP.NET server and found ASIHTTPRequest to be an easy tool. My question is he server part on the ASP.NET. How do I prepare the server part? ...

ASIHTTPRequest synchronously

I have an iPhone app which uses ASIHTTPRequest to communicate to a REST service on my server. When I'm running on the simulator, it works just fine, but when I get onto the phone itself, I get weird behavior. The very first time I click the button that initiates the request, I get the results back immediately, and all is fine. From that...

got EXC_BAD_ACCESS when I Cancel a Asynchronous web request by using ASIHTTPRequest

I have no problem to run the sample code below in a iPhone simulator, but when I run it in a iPhone , I always get a EXC_BAD_ACCESS when I call [asiRequest cancel]. anyone can help? thanks. ASIHTTPRequest *asiRequest; -(IBAction)request1{ NSLog(@"request starting"); [self sendRequest]; } -(IBAction)cancel1{ NSLog(@"request...

ASIHTTPRequest swallows up my NSOperation variables in synchronous mode

Hey I have been battling with this problem for a while now. Perhaps there is something I am missing in knowledge about multi threading but here is what happens. When I create an nsoperation queue any variables that are allocated become cleared after the "[request startSynchronous];" line of code. Here is what I'm talking about: @impleme...