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
144
votes
7 answers

Fix warning "Capturing [an object] strongly in this block is likely to lead to a retain cycle" in ARC-enabled code

In ARC enabled code, how to fix a warning about a potential retain cycle, when using a block-based API? The warning: Capturing 'request' strongly in this block is likely to lead to a retain cycle produced by this snippet of code: ASIHTTPRequest…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
93
votes
8 answers

What major ASIHTTPRequest features is AFNetworking missing?

With work having recently stopped on ASIHTTPRequest, it seems like attention is shifting to AFNetworking. However, I've not yet found a good comparison of the features of the two libraries, so I don't know what I might lose if/when I switch…
JosephH
  • 37,173
  • 19
  • 130
  • 154
50
votes
4 answers

Best architecture for an iOS application that makes many network requests?

I'm in the process of rethinking my approach to the request architecture of a large app I'm developing. I'm currently using ASIHTTPRequest to actually make requests, but since I need many different types of requests as a result of many different…
kevboh
  • 5,207
  • 5
  • 38
  • 54
41
votes
3 answers

Asihttprequest 61 errors

I'm using the ASIhttprequest in many projects but recently with each new project when I'm trying to add the ASIhttprequest classes I get the following error before using classes just when I'm trying to import them: Build finjan of project finjan…
Mouhamad Lamaa
  • 884
  • 2
  • 12
  • 26
39
votes
5 answers

UILabel text not being updated

I am unable to change the UILabel text. The code for the the UILabel inside viewDidLoad is : startLabel=[[UILabel alloc] initWithFrame:CGRectMake(75, 395, 200, 30)]; startLabel.text=@"Recording Sound ..."; startLabel.backgroundColor=[UIColor…
Ahsan
  • 2,964
  • 11
  • 53
  • 96
34
votes
1 answer

Use a self-signed ssl certificate in an iphone app

I apologize in advance for the long-winded question. I'm having trouble with a self-signed SSL cert and I want to document everything I've tried so far. I'm working on an app that communicates with a REST service. The test server uses a…
Jose Ibanez
  • 3,325
  • 3
  • 28
  • 33
30
votes
2 answers

ASIHTTPRequest vs AFNetworking framework

I am about to develop an application for iPad and it has enormous amount of background thread network calls. I would like to know which one will be better? ASIHTTPRequest still works but not maintained. However few sources says AFNetworking…
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
26
votes
1 answer

Does AFNetworking have backgrounding support?

I'm in the process of investigating AFNetworking as a replacement for ASIHTTPRequest, and notice a complete lack of information on whether it supports background downloads/uploads. With an ASIHTTPReqeust object, all you have to do is call [request…
Andy Riordan
  • 1,154
  • 1
  • 8
  • 13
26
votes
2 answers

ASIHTTPRequest: https with SSL

How to implement a https connection with SSL and ASIHTTPRequest? Are there some special steps to do? Can it be that this has nothing to do with ASIHTTPRequest? It has to do only with the server-side I think. Can someone post a link or describe the…
testing
  • 19,681
  • 50
  • 236
  • 417
24
votes
4 answers

AFNetworking - How to setup requests to be retried in the event of a timeout?

I have recently migrated from ASIHTTPRequest to AFNetworking, which has been great. However, the server that I am connecting with has some issues and sometimes causes my requests to timeout. When using ASIHTTPRequest it was possible to setup a retry…
MTurner
  • 959
  • 1
  • 6
  • 11
21
votes
3 answers

ASIHTTPRequest / ASIFormDataRequest - referencing request object within blocks under ARC

Very similar to this question, I am trying to convert a project that uses ASIHTTPRequest & ASIFormDataRequest to ARC. In my view controller classes, I often refer to and use properties of the request object in the completion blocks (looking at the…
barfoon
  • 27,481
  • 26
  • 92
  • 138
19
votes
4 answers

AFNetworking : How to know if response is using cache or not ? 304 or 200

I can't find any answer to my question, may be I miss something... When I ask for a url, I need to know if the response comes from the cache or from the net. Is the status code 304 or 200 ? (but AFNetworking always responde 200) With ASIHTTPRequest…
Vassily
  • 899
  • 2
  • 8
  • 19
17
votes
4 answers

iOS Development: Why do I always get the "A connection failure occurred" on the 1st attempt, but success on the next?

I'm using the ASIHTTPRequest lib in my iOS app to make RESTful requests to my Rails 3 web app. I seeing a weird and somewhat consistent error the 1st time I try to make a POST request to my web app, but then the POST request works fine the on the…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
16
votes
3 answers

Best substitute, successor or alternative for ASIHTTP for a download queue

I've recently read the news on http://allseeing-i.com that ASIHTTP is being discontinued. I have much respect for the makers of the library. However, I am now looking for a substitute that also supports queued download (multithreaded) on iOS, that…
brainray
  • 12,512
  • 11
  • 67
  • 116
16
votes
4 answers

Why should I prefer ASIHTTPRequest over NSURLConnection for downloading files from the web?

I've seen a couple of times people using ASIHTTPRequest to download files. Now I wonder why? What are the core benefits over NSURLConnection?
Proud Member
  • 40,078
  • 47
  • 146
  • 231
1
2 3
88 89