asihttprequest

Posting picture on facebook 'feed' from an iPhone app using graph api

I am using ASIHTTPRequest to work on facebook graph API. This is the nearest I have gone to posting a picture on the feed. So if I have a ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; The url is https://graph.facebook.com/me/feed Now to post a picture I do the following: [request setPostValue:@"My Message" fo...

ASIHTTPRequest issues for the iPHone

I have a buddy who is building the web server side of things and he needs my iphone app to send him a request. I don't have any experience in this type of programming so it is proving to be a bit difficult. I am trying to do a simple request that looks like this: ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL...

Load 100 UIImages

I am busy with an iPhone application. A part of it I load 100 small images from Flickr as an UIButton. The problem is how to handle the memory. it loads around 5-6 mb each time. When I dealloc the view trough navigationController popViewController the memory stays almost the same. What I do now is loop all the images and put the request...

iphone http request to a web server sometime very slow

Hello, I'm working on an app that makes several Http Request to a RESTFULL web server. When I lauch the app, the request is performed and very often it timeouts. If I perform the request once again (a dedicated button is in the UI for this purpose) it's quite fast (no time out). Do you have any hints on the location of this problem ? Co...

iPhone ASIFormDataRequest with multipart/form-data

Hello Everyone, as I have read in the ASI Documentation, its writen: "Data is posted in 'application/x-www-form-urlencoded' format, or 'multipart/form-data' format when uploading binary data or files." That's exactly my Problem. I am sending just a String to a server, but the server just accepts 'multipart/form-data' and as I just sen...

ASIHTTPRequest dealloc and EXC_BAD_ACCESS problem

Hi, I'm using an array of ASIHTTPRequest wrappers (AsyncImageLoader) to download images for cells in a UITableView. I'm having problems handling ASIHTTPRequests lifetime. If I release them, I end up having a EXC_BAD_ACCESS if I keep scrolling up and down while they try to load images. Here's what my wrapper looks like. self.request ha...

iPhone app, running http requests while application in background

Hello, In my iPhone app I would like to run several queries when the application is in background. I already use ASIHttpRequest to make the queries, that works fine but now I try to find a way to trigger them in background. In the app delegate, I have added a call to the method making the request:    [self getItemsFromServer] getItems...

Upload file onto Server from the IPhone using ASIHTTPRequest

Hi I've been trying to upload a file (login.zip) using the ASIHTTPRequest libraries from the IPhone onto the inbuilt Apache Server in Mac OS X Snow Leopard. My code is: NSString *urlAddress = [[[NSString alloc] initWithString:self.uploadField.text]autorelease]; NSURL *url = [NSURL URLWithString:urlAddress]; ASIFormDataRequest *req...

Uploading Audio Files with ASIHTTPRequest

Can anyone please give me a tutorial on how to upload Audio Files onto a server using ASIHTTPRequest? I'll need to build a JSON and get the audio data into the JSON then send it to the server. If this is too vague please don't hesitate to ask for more info. let's say i use AVAudioRecorder class. What would i use to send that audio file...

NSOperationQueue and ASIHTTPRequest

I'm writing test cases for a wrapper class written around ASIHTTPRequest. For reasons I can't determine, my test cases complete with failure before the ASIHTTPRequest finishes. Here's how the program flow works. Start in my test case. Init my http engine object, instruct it to create a new list Create the new ASIHTTPRequest object and...

About download file using ASIHttpRequest

I plan to use ASIHttpRequest for downloading files from back-end server. Before actions, post questions here to know more about this feature. As sample source codes given : ( demonstrate downloading remote JPG file ) ASIHTTPRequest *request; request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASI...

NSOperationQueue returning __getNextReady bad access on resuming

Here's how I start the code: m_searchTimer = [[NSTimer timerWithTimeInterval:0.5 target:self selector:@selector(launchRequest:) userInfo:nil repeats:FALSE] retain]; [[NSRunLoop mainRunLoop] addTimer:m_searchTimer forMode:NSDefaultRunLoopMode]; then in my -(void)launchRequest method: - (void)launchRequest:(NSTimer *)timer { ASIHTT...

What delegate method is called when an ASI-HTTP-Request times out?

I have an app that uses ASI-HTTP-Request for large files, and I had a tester recently note that they wer observing very long loading delays that should be manifesting as timeouts. I have delegate methods wired up for request failures, but these didn't seem to be happening. I poured through their documentation but didn't see anything spe...

How? UITableViewCell with UIImageView asynchronously loaded via ASINetworkQueue

I'm trying to load some images in table cells asynchronously using ASINetworkQueue. I just can't figure it out and can't seem to find a good SIMPLE example. The best I can find is this, but its just totally overkill and a little too complicated for me: http://kosmaczewski.net/2009/03/08/asynchronous-loading-of-images-in-a-uitableview/ ...

compare uitextfield input with responseData of ASITTHPRequest

Hi, I am writing an application for Registration form (with fields--> firstName, EMail, password, postalCode etc.,.). while, user enters value in first textfield(ex: firstName in my app), it should connect to the remote URL.. and check the user entered value with the responseData(0/1). (1)How to check 'firstName.text' (IB field) with r...

How to display the value of responseData of ASIHTTPRequest?

Hi to All, I have used below code in my application of User Registration to interact with remote database. -(IBAction)checkFirstName:(UITextField*)textField { NSURL *url = [NSURL URLWithString:@"http://mysite.com"]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request setPostValue: first...

ASIHTTPRequest Authentification

Hello everyone. I have discovered ASIHTTPRequest a few days ago and I'm now blocked on a thing. I would like to authenticate my self on an https address (https://user:[email protected]/0.1/userCom/?apikey=12432 ) I try this code : NSURL *url = [NSURL URLWithString:@"https://api.domain.com/0.1/userCom/?apikey=12432"]; ASIFormDataReq...

ASIHTTPRequest File Upload image....

I am trying write a simple image uploader using ASIHTTPRequest... but at the code below.... [request setData:imageData withFileName:@"iphone.jpg" andContentType:@"image/jpeg" forKey:@"photo"]; I get below warning msg.... warning: 'ASIHTTPRequest' may not respond to '-setData:withFileName:andContentType:forKey:' not too sure whats ...

ASIHTTP Request failed in log, but requestFailed not getting called

I have -(void)requestFailed:(ASIHTTPRequest *)request { NSError *error = [request error]; NSLog(@"Request Failed Error: %@", error); } When I make my request I do //add data to the array NSString *json = [array JSONRepresentation]; [request appendPostData:[json dataUsingEncoding:NSUTF8StringEncoding]]; [request star...

ASIFormDataRequest- POST of file continues seems to continue after authentication fails

I'm posting some data to a http authenticated url with ASIFormDataRequest. When the authentication fails and the authentication dialog delegate is invoked the upload progress seems to still proceed fully. So in these cases: 1) The user's credentials are not yet stored in the keychain 2) The user's credentials which are stored in the k...