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
6
votes
3 answers

ASIHTTPRequest POST iPhone

Here's a portion of the html code I'm trying to submit the textarea, much this textarea this forum uses to type in questions. It's not working, nothing gets sent and the type of response i get back is NSHTTPURLResponse: 0x617bb20 Though I managed…
Mark
  • 621
  • 1
  • 10
  • 24
6
votes
2 answers

XCode 4 + Instruments 4: False positive leaks?

Ever since switching to XCode 4 the leaks tool shows a LOT of leakage, all from JSONKit and ASIHTTPRequest, after a 2 min run I am leaking hundreds of arrays/dictionaries/strings (from jk_create_dictionary, jk_parse_array, HTTPMessage::*, etc.)…
unexpectedvalue
  • 6,079
  • 3
  • 38
  • 62
6
votes
3 answers

What is ASIHTTPRequest?

What is ASIHTTPRequest? how do we use it in an iphone application? what are the files we need to include? Does Apple provide files for this?
iOS
  • 423
  • 1
  • 6
  • 15
6
votes
1 answer

ASIHTTP: Upload UIImage?

Can someone please tell me how I can use an ASIHTTPRequest object in Objective-c to upload an UIImage object? Do I need to convert it to an NSData object? (This is for an avatar upload url) E.g. UIImage *toUpload = [UIImage…
dpigera
  • 3,339
  • 5
  • 39
  • 60
6
votes
2 answers

How to Using ASIHTTPRequest to tracking Upload/Download progress

I got some question is using ASIHTTPRequest to tracking Upload/Download progress This is the sample from ASIHTTPRequest website ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request…
Webber Lai
  • 2,014
  • 5
  • 35
  • 66
6
votes
2 answers

Empty body in POST in ASIHTTPRequest

Basically, I am sending a POST request with an empty data body: ASIHTTPRequest *request [ASIHTTPRequest alloc] init]; [request setURL:[NSURL URLWithString:escapedUrlString]]; [request setRequestMethod:@"POST"]; [request…
Frank
  • 3,073
  • 5
  • 40
  • 67
6
votes
4 answers

Crashing with ASIHTTPRequest and NSOperationQueue when cancelling operations

I'm having a really hard time when trying to cancel requests in an NSOperationQueue. Before deallocating my 'engine' object, I call a cancelOperations method to cancel everything in the queue, so this will include in flight ASIHTTPRequests and…
mootymoots
  • 4,545
  • 9
  • 46
  • 74
6
votes
2 answers

How to Use ASIFormDataRequest to http post array of NSDictionary objects

Hey, I need to make a HTTP POST request with an array of NSDictionary objects. When I do this, however, I notice on the server side that the NSDictionary object does not get deserialized to a hash. It gets deserialized to a string - which is not…
amehta
  • 439
  • 6
  • 14
6
votes
0 answers

ASIHTTPRequest CFRunLoopRun() crash

I've inherited an old project that uses ASIHTTPRequest for networking, which I'm trying to update for iOS 7. I'm performing a request but keep getting a crash that happens here: The crash seems to occur on my iPad 2 device consistently, and the…
hgwhittle
  • 9,316
  • 6
  • 48
  • 60
6
votes
2 answers

Add operation in queue while requesting ASIHTTPRequest or AFNetworking

I want to add operation into executing request. I read about ASINetworkQueue, but it adds all operation and run it all. but i want to add operation into running queue. Is this possible? using ASIHTTPRequest or AFNetworking i don't mind, as long as…
HelmiB
  • 12,303
  • 5
  • 41
  • 68
6
votes
4 answers

Error with iOS 5.1 when i use ASIHTTPRequest and SBJSON

i am getting this error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref in FirstViewController.o "_OBJC_CLASS_$_SBJsonParser", referenced from: objc-class-ref in…
Vacca
  • 1,219
  • 16
  • 26
5
votes
1 answer

ASIHTTPRequest for dummies

I'm a COMPLETE DUMMY in ASIHTTPRequest. I have just downloaded the library and added it to my project and now i'm trying to understand basics of working with it. I've found some pretty good example here this little tutorial is about uploading images…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
5
votes
2 answers

ASIHTTPRequest: a (potentially) carrier-specific issue whilst uploading data / server receives blank POST

Very strange (to me) problem when uploading files to a server using ASIFormDataRequest. When uploading over WiFi, there's no problem, I can upload just fine. When uploading over 3G using O2 UK as the carrier, there's no problem either. When I upload…
Ian Dundas
  • 553
  • 1
  • 6
  • 17
5
votes
2 answers

Using ASIHTTPRequest to POST nested params using a NSDictionary

Trying to post information for nested parameters to a rails app and having some trouble. #pragma mark - Begin Network Operations - (void)beginNetworkOperation { NSURL *requestURL = [NSURL URLWithString:[self retrieveURL]]; ASIFormDataRequest…
Kyle
  • 1,662
  • 2
  • 21
  • 38
5
votes
1 answer

ASIHTTPRequest Basic Authentication failing

I am using the following code: NSString *params = [NSString stringWithFormat:@"{\"username\": \"%@\", \"password\": \"%@\", \"client_id\": \"%@\", \"client_secret\": \"%@\"}", mFieldUsername.text, mFieldPassword.text, [NTDefaults…
Herm
  • 411
  • 5
  • 14