Questions tagged [asihttprequest]

ASIHTTPRequest, a deprecated and outdated framework to replace NSURLConnection on iOS and OS X.

ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.

It is suitable performing basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The included ASIFormDataRequest subclass makes it easy to submit POST data and files using multipart/form-data.

Homepage:

http://allseeing-i.com/ASIHTTPRequest/

Setup instructions:

http://allseeing-i.com/ASIHTTPRequest/Setup-instructions

How to use:

http://allseeing-i.com/ASIHTTPRequest/How-to-use

Source code:

http://github.com/pokeb/asi-http-request/tree

1323 questions
8
votes
2 answers

Warning:Comparison of constant 8 with expression of type XXXX is always false

I used ASIHTTPRequest in my project,but in the file ASIDataCompressor.m line 190: if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { if (err) { *err = [NSError errorWithDomain:NetworkRequestErrorDomain…
yellow
  • 702
  • 1
  • 10
  • 24
7
votes
3 answers

Switching to AFNetworking from ASIHTTPRequest - Issue with ASINetworkQueue

I'm working on a problem where I have to download around 10 different large files in a queue, and I need to display a progress bar indicating the status of the total transfer. I have this working just fine with ASIHTTPRequest in iOS4, but I'm…
BBonifield
  • 4,983
  • 19
  • 36
7
votes
1 answer

Accurate progress displayed with UIProgressView for ASIHTTPRequest in an ASINetworkQueue

Summary: I want to track the progress of file downloads with progress bars inside cells of a tableview. I'm using ASIHTTPRequest in an ASINetworkQueue to handle the downloads. It works, but the progress bars stay at 0%, and jump directly at 100% at…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
7
votes
1 answer

Load HTTPS url in a UIWebView

I begin iPhone programming and I have big problem I cant resolve. So, I have a UIWebview, I can load HTTP url without problems : NSString urlAdress; urlAdress = @"http://servername"; NSURL *url = [NSURL URLWithString:urlAdress]; NSURLRequest…
Borneto
  • 71
  • 1
  • 1
  • 2
7
votes
1 answer

How to set attributesOfItemAtPath (such as modification date/time) on iPhone

I know I can use attributesOfItemAtPath to get modification time/date of file among other things... but is there a way to SET the modification date/time of a file? I have looked at How to set the modification time of a file programmatically? but it…
Jann
  • 2,214
  • 3
  • 28
  • 45
7
votes
2 answers

iphone: upload image to server using ASIFormDataRequest

I have to upload an image to server for which I wrote code using NSMutableURLRequest like this NSString *boundary = [NSString stringWithString:@"---------------------------14737809831466499882746641449"]; NSString *contentType = [NSString…
Ankit Sachan
  • 7,690
  • 16
  • 63
  • 98
7
votes
4 answers

ASIHTTPRequest; installation issues

I am trying to install ASIHTTPRequest and i am having issues with libxml/HTMLParser, xmlsave, xpath and xpathInternals are missing. I have already included the libxml2.2.7.3 framework and followed the guide on their website to the letter. any…
Veeru
  • 4,936
  • 2
  • 43
  • 61
7
votes
5 answers

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…
smokey_the_bear
  • 1,343
  • 1
  • 12
  • 23
6
votes
1 answer

Strange Crash issue as:- Dispatch queue: com.apple.root.default-overcommit-priority

I am developing an application in which a lot of operations are added in ASINetworkQueue.The operations are basically used for fetching the image from server and then in successful completion set the image in table view cell. Everything is happening…
Gypsa
  • 11,230
  • 6
  • 44
  • 82
6
votes
2 answers

Is it safe to still use ASIHTTPRequest?

Ben Copsey has abandoned ASIHTTPRequest. It has been announced almost two months ago but I just realized it. I'm in the middle of a project using it. It wouldn't be an huge problem for me to replace it with something else at this stage (everyone is…
ySgPjx
  • 10,165
  • 7
  • 61
  • 78
6
votes
2 answers

iOS 5 Hanging on ASIHTTPRequests

So I have an app that runs on iOS 3.2 - 4.x. It uses ASIHTTPRequest to make all the REST API calls. Ever since my team and I upgraded three of our iPhone 4's to iOS 5, The app will hang and show the ActivityIndicator indefinitely. I looked at the…
Tareq
  • 61
  • 2
6
votes
2 answers

iOS Handling Multiple Asynchronous Requests: Send a Signal When All Requests Are Finished

So I am browsing over Stack Overflow for ways to handle asynchronous requests effectively. Right now I am using ASIHTTPRequest and my application consumes a REST API, in which a request to a single resource prompts me to request 5 or more additional…
yretuta
  • 7,963
  • 17
  • 80
  • 151
6
votes
4 answers

Multiple Requests on ASIHTTPRequest

I need to download three different sets of data from three different URLs. I decided to use ASIHTTPRequest. Two of the URLs are JSON feeds which I need to parse and one of them is a .txt file online that I need to store locally. Now the example that…
darksky
  • 20,411
  • 61
  • 165
  • 254
6
votes
2 answers

ASIHttpRequest DELETE method with body parameters

I use ASIHttpRequest (v. 1.8-95) for Iphone and wanted to create a synchronous DELETE request together with some body data. I went this way: ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:nsUrl]; [request appendPostData:[@"some body…
creator_11
  • 701
  • 1
  • 7
  • 12
6
votes
2 answers

how to track a single download speed with asihttprequest

Can someone help me with asihttprequest ? I want to track the speed download of each file I download and not the average speed of all the files. For the average spped of all downloads, there is [ASIHTTPRequest averageBandwidthUsedPerSecond] but what…
Alby
  • 273
  • 6
  • 14