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
15
votes
1 answer

Objective-C: Instance Variable in Category

I am just asking whether it was possible to add an instance variable via a category. My special problem is, that I need to add an NSIndexPath property to an ASIHTTPRequest object but I don't wanna subclass the ASIHTTPRequest as a matter of…
cschwarz
  • 1,195
  • 11
  • 24
14
votes
2 answers

ASIHTTPRequest set timeout

How can I set the session timeout using ASIHTTPRequest ? Thanks
Dave
  • 363
  • 2
  • 3
  • 9
13
votes
1 answer

Incorrect NSStringEncoding value 0x0000 detected (using ASIHTTPRequest)

I'm using ASIHTTPRequst in my application and im having some problems, but only on certain devices. In some cases i get the following error: " Incorrect NSStringEncoding value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this…
Madoc
  • 1,605
  • 3
  • 17
  • 30
13
votes
2 answers

Generic approach to NSManagedObjectContext in multi-threaded application

I've read a number of posts here about NSManagedObjectContext and multi-threaded applications. I've also gone over the CoreDataBooks example to understand how separate threads require their own NSManagedObjectContext, and how a save operation gets…
chris
  • 16,324
  • 9
  • 37
  • 40
12
votes
2 answers

ARC and ASIHTTPRequest

I have a strange problem. I use ASIHTTPRequest in a iOS 5 project with ARC enabled. Since ASIHTTPRequest does not support ARC I have disabled ARC on all individual ASIHTTPRequest files. However, when I'm trying to compile my project, xcode still…
dimme
  • 4,393
  • 4
  • 31
  • 51
12
votes
1 answer

Apple Mach-O Linker (id) Error - undefined symbols for architecture i386

I know this type of error has been raised many times before, but I have not found solution of my error. I am using xcode 4.0. I downloaded ASIHTTPRequest zip and copied classes folder along with two files of 'Reachability". After compilation, it is…
NightFury
  • 13,436
  • 6
  • 71
  • 120
11
votes
3 answers

AFNetworking - Download multiple files + monitoring via UIProgressView

I am trying to change my code from ASIHTTPRequest to AFNetworking. Currently I want to select 10-15 different HTTP URLs (files) and download them to a documents folder. With ASIHTTPRequest that was pretty easy with [myQueue…
John
  • 171
  • 2
  • 2
  • 7
11
votes
4 answers

Good pattern for Internet requests with Grand Central Dispatch?

I'm currently using synchronous ASIHTTPRequest with GCD queues to download data from the Internet, then parse the response data with JSONKit. What do you think about this pattern. Thank you in advance. Here is my code: dispatch_async(queue,…
nonamelive
  • 6,510
  • 8
  • 40
  • 47
11
votes
2 answers

'kCFStreamSSLAllowsExpiredCertificates' and 'kCFStreamSSLAllowsAnyRoot' is deprecated

I have added the "ASIHTTPRequest" library to my app. Now, I'm trying to remove all warnings in my project. I have fixed all other warnings except those for "ASIHTTPRequest". I'm getting the warnings below. 'kCFStreamSSLAllowsExpiredCertificates'…
2vision2
  • 4,933
  • 16
  • 83
  • 164
10
votes
3 answers

What are alternatives to NSURLConnection for chunked transfer encoding

I've checked for other questions relevant to this, but the only answer is "Use ASIHTTPRequest" as this is no longer being developed I wanted to ask what alternatives people are using, whilst working on our SDK I came across a lot of strange…
pyr0manic
  • 103
  • 1
  • 6
10
votes
3 answers

What library to import for #import

I have imported ASIHTTP files into my project and inside ASIWebPageRequest.m there is the following import: #import which is not recognized. What library should I add in order to be recognized?
adrian
  • 4,574
  • 17
  • 68
  • 119
10
votes
3 answers

Objective C - HTTP/0.9 response from GET using ASIHTTPRequest

I've started using ASIHTTPRequest in my iOS project to execute REST server method calls and so far have been very successful with it. I just have one strange intermittent problem. Very occasionally I get the following response from using…
Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82
9
votes
1 answer

ASIHTTPRequest fails in production builds

So i've run into quite a problem. It seems that ASIHTTPRequest just does not want to work in a production build. Everything works great in debug. However, once I build for production the following code just doesn't want to run. It doesn't hit either…
endy
  • 3,872
  • 5
  • 29
  • 43
9
votes
1 answer

How to accept self-signed certificate with asihttprequest

I am trying to get a self-signed certificate to work with my application. I am using the ASIHTTPRequest library at the moment like so : - (IBAction)sendHttpsRequest { //Set request address NSMutableString *databaseURL = [[NSMutableString…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
9
votes
5 answers

Why are my ASIHTTPRequest files showing ARC errors?

I have implemented all of my ASIHTTPRequest files, but unfortunately the following errors occur: Why is this happening?
pixelbitlabs
  • 1,934
  • 6
  • 36
  • 65
1
2
3
88 89