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
9
votes
5 answers

iOS 5 : https ( ASIHTTPRequest) stop working

I got an app which use ASIHTTPRequest. I recompiled my app with iOS 5 (sdk : 5.0 / xcode: 4.2 Build 4D199 ) and the https connections fail with error message (the same call with https disabled works fine): Error Domain=ASIHTTPRequestErrorDomain…
Loda
  • 1,970
  • 2
  • 20
  • 40
9
votes
4 answers

asihttprequest crashes my app

I have a navigation based app. Press a button on main view, then I push a new view to the navigation controller. All pretty basic stuff. When the new view is loaded, I do an ASIHTTPRequest to fetch some json data, which is a list of image urls. Then…
Trausti Thor
  • 3,722
  • 31
  • 41
9
votes
2 answers

Is calling -[NSRunLoop runUntilDate:] a good idea?

Is it generally a good idea to call -[NSRunLoop runUntilDate:]? It seems to work without any issues, but it makes me nervous to tell the run loop to run from within the run loop. More info: I have a project right now that is fetching data from a…
Jose Ibanez
  • 3,325
  • 3
  • 28
  • 33
9
votes
1 answer

What are differences between NSURLConnection and ASI-HTTP-Request?

Some people strongly prefer asihttprequest ASIHTTPRequest vs NSURLConnection Reasons can be listed (not full) a lot of extra features,such as supporting cache,http proxy etc also based on CFNetwork , coming from ImageClient But also there are a…
Forrest
  • 122,703
  • 20
  • 73
  • 107
9
votes
1 answer

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…
Lyle Pratt
  • 5,636
  • 4
  • 27
  • 28
9
votes
1 answer

ASIHTTPRequest - HTTPS

Does ASIHTTPRequest support HTTPS connections? My connection right now works for a HTTP connection and errors if I try a HTTPS Connection. (Goes into requestFailed and gives me a ASIHTTPErrorRequestDomain) -(void) getData { av.hidden = NO; [av…
Tejaswi Yerukalapudi
  • 8,987
  • 12
  • 60
  • 101
9
votes
1 answer

'libxml/HTMLparser.h' file not found in ASIHTTPRequest

Possible Duplicate: ASIHTTPRequest; installation issues I've followed the setup tutorial step by step but I get this error: 'libxml/HTMLparser.h' file not found. I've also cloned the libxml library, but it doesn't work. Any idea? Thanks!
iosdevrocks
  • 1,025
  • 3
  • 10
  • 17
8
votes
3 answers

How SOAP and REST work with XML/JSON response?

This is one very common question asked again and again on stack overflow and I read so many answers about this but I am still bit confused. I need to call the webservices from iPhone sdk. Here are my questions: I am not clear what response SOAP or…
Heena
  • 2,348
  • 3
  • 32
  • 58
8
votes
1 answer

where is the zlib framework in xcode 4.x

I am just trying to set up a new application that I am hoping to take advantage of ASIHTTPRequest framework.. however in their documentation they state that you have to link against CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
8
votes
3 answers

Push vs polling with web service on iPhone

I'm using the ASIHttpRequest library to ask a web service every minute for updates. The app receives a json string and parses it. It works OK. But I'd like to make this more efficient.. what would be the best way of getting the server to send to the…
cannyboy
  • 24,180
  • 40
  • 146
  • 252
8
votes
2 answers

ASIHTTPRequest post json to php server

I have been trying to post a json object to a PHP script for the last 5 hours. I have read all the docs and it seems the code should work BUT it does not. The request is made and received ok, but I can't access the posted json data or dont even…
johnstontrav
  • 339
  • 1
  • 6
  • 14
8
votes
2 answers

ASIHTTPRequest vs NSURLConnection

Just wondering which is faster in terms of performance and usability? Or if there's anything better out there?
Frank
  • 3,073
  • 5
  • 40
  • 67
8
votes
3 answers

Download entire webpage in iOS WITHOUT using ASIHTTPRequest

Is there an alternative to ASIWebPageRequest in the ASIHTTPRequest library that I can use for downloading an entire web page in iOS including the CSS, JavaScript and image files, etc? I can't seem to find a similar class in the AFNetworking…
David Omid
  • 647
  • 6
  • 19
8
votes
1 answer

Uploading to Ruby on Rails from iPhone using ASIHTTPRequest

I've really hit a wall and am need of some help! Thankyou for reading this far! I'm in the middle of writing an app that talks to my ROR web-server for database requests and works great thanks to ActiveResource. But I now need to also upload files…
Chris
  • 2,727
  • 2
  • 27
  • 28
8
votes
2 answers

Autorelease pool page corrupted

Whenever I am using ASIHTTPRequest for making webservice calls I am randomly getting the following crash: autorelease pool page 0x9418000 corrupted magic a1a1a100 4f545541 454c4552 21455341 pthread 0xb0103000 My code is ARC-fied and used…
Javvadi Rajesh
  • 281
  • 2
  • 10
1 2
3
88 89