asihttprequest

[iPhone] ASIHTTPRequest, EXC_BAD_ACCESS when request did finished

Hi, I'm trying to do an asynchronous request with ASIHTTPRequest, but have some problem getting notified when the request is done. -(void)doDownload{ NSURL *url = [NSURL URLWithString:@"http://www.someurl.com/?"]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request setPostValue:@"someValue" forKe...

Timeout a ASIHTTP request

Hello, I'm using the ASIHTTPRequest library to request some data from a server in my iPhone app. But i cannot figure out how to create a timeout so that if the server goes down or the iPhone doesnt have internet connection the app doesnt crash. Thanks in advance EDIT>>> tt.Kilew your code doesnt work... I posted a bit of sample co...

ASIHTTPRequest set timeout

Hi, How can I set the session timeout using ASIHTTPRequest ? Thanks ...

ASIHTTPRequest and userInfo

According to the website for ASIHTTPRequest: If your requests are all of the same broad type, but you want to distinguish between them, you can set the userInfo NSDictionary property of each request with your own custom data that you can read in your finished / failed delegate methods. How do I set userInfo? NSURL *url...

ASIHTTPRequest File Upload and PHP

I am using the following code (with ASIHTTPRequest) to attempt to upload php files from my iPhone to my LAN MAMP server running on my Macbook Pro. My objective-c and my php seem to be in line, but the files are not uploading. OBJECTIVE-C CODE NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMas...

Trying to upload image from iPhone to server using ASIFormDataRequest

I'm trying to use ASIFormDataRequest to send a photo image from my iPhone app to my server. When I do so, the server sends back an error message saying, "must be an image file," implying that there is something wrong with the formatting of my image. (Of course, that might not be the problem...but it's a good place to start.) I know ...

build a tcp server to test asihttp

Hi, I am working on iphone networking application.. I am using asihttp , a wrapper of the CFnetwork framework. http://allseeing-i.com/ASIHTTPRequest/ I want to build a server that sends some data on request from the client... I want this for the sole purpose of testing the application i write and understanding the networking more deep...

Memory management, and async operations: when does an object become nil?

I have a view that will be displaying downloaded images and text. I'd like to handle all the downloading asynchronously using ASIHTTPRequest, but I'm not sure how to go about notifying the view when downloads are finished... If I pass my view controller as the delegate of the ASIHTTPRequest, and then my view is destroyed (user navigates...

Using ASIHTTPRequest to display full sites in UIIWebView

I have to login to a website that uses Windows Authentication. I am using ASIHTTPRequest to accomplish. The problem is that I am able to download and display the source code of the HTML page with UIWebView but I could not figure out how to display the full content of the page including pictures, javascript etc. Any ideas how to accomplis...

Stream multiple files in _one_ ASIHTTPRequest

What is best practice to stream multiple files in one ASIHTTPRequest? Right now, for one file I use: .... ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:someUrl]; [request setShouldStreamPostDataFromDisk:YES]; [request appendPostDataFromFile:someFilePath]; [request startSynchronous]; How to stream multiple files withou...

Is it a good idea to use ASIHTTPRequest library with three20 ?

Was wondering if it was a good idea to intergrate ASIHTTPRequest framework for HTTP requests for REST while using three20. three20 has TTURLRequest. ...

Urban Airship Tags issue

I modified the alias sample code from: [request addRequestHeader: @"Content-Type" value: @"application/json"]; [request appendPostData:[[NSString stringWithFormat: @"{\"alias\": \"%@\"}", self.deviceAlias] dataUsingEncoding:NSUTF8StringEncoding]]; to: [request addRequestHeader: @"Content-Type" value:...

ASIHttpRequest problems. "unrecognized selector sent to instance"

Hi, I am experiencing problems using ASIHttpRequst. This is the error I get: 2010-04-11 20:47:08.176 citybikesPlus[5885:207] *** -[CALayer rackDone:]: unrecognized selector sent to instance 0x464a890 2010-04-11 20:47:08.176 citybikesPlus[5885:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** ...

Tracking iPhone on Yahoo Web Analytics using ASIHTTPRequest

I'm trying to track an event in my app using Yahoo Web Analytics. The code I am using looks like ASIHTTPRequest *yahooTrack = [ASIHTTPRequest requestWithURL: [NSURL URLWithString:@"http://s.analytics.yahoo.com/p.pl?a=xxxxxxxxxxxxx&js=no&b=yyyyyyyyyyyy&cf6=zzzzzzzzzzz"]]; yahooTrack.didFinishSelector = @selector(statistic...

iPhone: ASIFormDataRequest Returns NULL from PHP Server

Hi, I have PHP script link, which responds YES or NO when we set post userName and emailID. I have used ASI framework. When I try to connect with the following code, I get a null return. NSURL *url = [NSURL URLWithString:@"https://abc.com/abctest/registration.php"]; ASIFormDataRequest *request = [[ASIFormDataRequest alloc] initWithU...

What API to use for uploading images to a Rails based website from an iPhone application?

Looking at using either ObjectiveResource or ASIHTTPRequest ... Which is superior for uploading images? Or is there a better option??? Are there any examples of using either or both to upload images (or any other binary content)? Thanks ...

ASIHTTPRequest wrapper usage for Macs

I am trying to apply the ASIHTTPRequest wrapper to a very basic Objective C program. I have already copied over the necessary files into my program and after giving myself an extreme headache trying to figure out how it works through their website I thought I would post a question on here. The files copied over were: ASIHTTPRequestCon...

Downloading file with ASIHTTPRequest - iPhone app

Hi I am using the ASIHTTPRequest source code to download a file from a remote location. Surprisingly, the download happens but nothing happens after that. I have put in a log statement in the handleBytesAvailable method and can see the entire file worth of data is downloaded in parts and added to the fileDownloadOutputStream variable. ...

ASIHTTPRequest - HTTPS

Does ASIHTTPRequest support HTTPS connections? My connection right now works for a HTTP connection and errors if I try a HTTPS Connection. (Goes into requestFailed and gives me a ASIHTTPErrorRequestDomain) -(void) getData { av.hidden = NO; [av startAnimating]; NSString *urlString = [IP stringByAppendingString:@"Method1"]; NSURL *url =...

How to verify that post to website is coming from a specific purchased iPhone application?

I have an iPhone application that posts data to a web application ... and I want to only accept data posted from an iPhone application that was purchased from the iTunes store. Is there a way to do this? Is there something (or somethings) I can pass from the iPhone app to the web application that I can use to do such verification? Tha...