asihttprequest

upload data and save it using ASIHTTP

I have a web page in which a value 'A' is constantly updated. I use ASIHttp to access the page contents and get this value 'A'. Based on A i calculate value X and i then i need to save this X to a webpage. I am able to get the data and am doing the calculation to get X. How do i upload and save the X to a webpage using ASIHTTP so that th...

ASIHTTPRequest on www.blau.de?

Hey guys, I need to login here. I've tried the ASIHTTPRequest and ASIFormDataRequest. None of them works as expected. I only got the data from the loginpage in the response string, not the data from the secure area. What am I doing wrong here? ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@...

How to use Three20 framework to upload multiple images and handle JSON response?

So I have an iPhone application that needs to: Post several strings and up to 5 images (stored in memory) to a RoR web application Parse the JSON returned that will include several strings and an array of URLs (each representing the location of where the uploaded images can be found on the website). QUESTIONS: Can this be done with...

Get objc_exception_throw when setting cookie with ASIHTTPRequest

I got objc_exception_throw when trying to set cookies for a ASIHTTPRequest request. I tried both of these but it didn't work out. ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:url]; NSMutableDictionary *properties = [[NSMutableDictionary alloc] init]; [properties setValue:@".google.com" forKey:@"Domain"]; [properties ...

Failed to move file error in ASIHTTPRequest

i am using ASIHTTPRequest for downloading file from server but its giving error Failed to move file from '/Users/admin/Library/Application Support/iPhone Simulator/3.1.3/Applications/8650FFE4-9C18-425C-9CEE-7392FD788E6D/Documents/temp/test.zip.download' to '/Users/admin/Library/Application Support/iPhone Simulator/3.1.3/Applications/86...

how to check download resumed or not in ASIHTTPRequest..?

hi i am downloading file from server using ASIHTTPRequest in my iphone application but i am not getting any callbacks to know whether downloading resumed after i stopped and resume it again . ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDelegate:self]; [request setAllowResumeForFileDownloads:YES]; [reques...

Is ASIHTTPRequest allows resume download even after quit application and relaunch application ..?

hi i want to provide a resume option for user to download. if user quits application and relaunch it i want to resume from where it stooped ..... is ASIHTTPRequest allows this ... any one as idea on this if any idea.... Thanks in advance... ...

Pass Result of ASIHTTPRequest "requestFinished" Back to Originating Method

I have a method (getAllTeams:) that initiates an HTTP request using the ASIHTTPRequest library. NSURL *httpURL = [[[NSURL alloc] initWithString:@"/api/teams" relativeToURL:webServiceURL] autorelease]; ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:httpURL] autorelease]; [request setDelegate:self]; [request startAsynchr...

POSTDATA, ASIHTTPrequest + instapaper

Hi guys, I'm trying to use ASIHTTPRequest to submit links to instapaper (http://www.instapaper.com/api). I'm able to authenticate but I get a 400 response when trying to submit a link, so I'm clearly in need of figuring how to use postdata. Any help appreciated. Sample code attached. Thanks NSURL *url = [NSURL URLWithString:urlInsta...

Testing Async downloads with ASIHTTPRequest

I am writing a simple library using ASIHTTPRequest where I am fetching URLs in an async manner. My problem is that the main function that I have written to test my lib exits before the async calls are finished. I am very new to Obj C and iPhone development, can anyone suggest a good way to wait before all the requests are finished i...

Using Amazon Simple Storage Service (S3) on Android

What's the best way to use Amazon Simple Storage Service (S3) on Android? For iPhone I use ASIHTTPRequest. Is there something similar for Android? ...

Do I need to retain autoreleased objects?

Hello, I'm using ASIHTTPRequest library and I want to be sure if I use it in a good way from the memory management point of view. I create: ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:someUrl]; I guess that according to the naming convention I don't have to retain request object, right? but when I look at the cod...

YAJL-ObjC + Streaming Parser + gzip

I'm successfully using yajl-objc along with ASIHTTPRequest in an iPhone project that does network access and pulls down and parses JSON data. ASIHTTPRequest allows gzipped HTTP responses by default, which is great, but I'm using the streaming parser ability of YAJL and it rightfully chokes on gzipped data. I can wait until the HTTP requ...

Iphone Deployment Target with ASIHTTPRequest

I'm having an issue trying to use ASIHTTPRequest libraries in my iPhone application. When I go to compile my project for the iPhone Simulator 3.0 SDK, I get the following error: Too few arguments to function 'CFNetworkCopyProxiesForAutoConfigurationScript' After a bit of search around the web I found some indications that it may be...

Django @login_required views for JSON data API's used from iPad/iPhone/Android?

Django @login_required views for JSON data API's used from iPad/iPhone/Android? In my Django webserver, I have built JSON data API's that I want to access from mobile devices: iPad/iPhone/Android. I'm using the iPad/iPhone ASIHttp Library. How do I login users from an iPad/iPhone so my data API's can use the @login_required decorator?...

Base SDK Missing, CFNetwort.framework not listed

HEllo, I have just installed xcode 3.2.3 and SDK4. I need to use ASIHttpRequest and then follow the instruction setup for this. I need to add several frameworks and lib (as described here: http://allseeing-i.com/ASIHTTPRequest/Setup-instructions but I cannot find CFNetwork in the list. xcode only shows "Base SDK Missing" in the list wher...

Problem with filedownload using asihttp

Hi all, I have a problem with downloading file using asihttp. Downloading is working fine for me except that the folder I have created as downloadDestination is getting replaced by the downloaded file and I'm not able to download any new file after that. How this issue should be addressed? Thanx in advance. ...

What is a better way to go for a simple file upload and download: NSURLConnection or ASIHTTP?

Hi all, I want to include simple file uploading and downloading [any type of file e.g. .pdf, .pptx ,.txt etc] functionality in my application. What is the better way to opt for using asihttp or NSURLConnection? Thanx in advance. ...

having trouble upload image from iphone Photo Picker to a server using ASIFormDataRequest

Basically I am trying to upload an image using ASIFormDataRequest. This is my following code ASIFormDataRequest *request = [ASIHTTPRequest requestWithURL:urlImg]; [request setRequestMethod:@"POST"]; [request addRequestHeader:@"Content-Type" value:@"application/xml"]; [request setDelegate:self]; [request setTimeOutSeconds:500]; NSData...

UITableViewController not reloading data - ASIHTTPRequest

Hi all, I am having trouble getting my UITableViewController to reload/refresh the data. I have a method which uses ASIHTTPRequest to call a URL and bring back some string data. I am trying to put this data into a cell of the table, but [self.tableview reloadData] is not working. I was thinking that the ASIHTTPRequest completes its ...