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

Need to log storage type of local variable

In short, I need to know if I am able to log the storage type for a variable. Specifically, I want to log whether a variable has the __block storage type modifier applied to it. Ideally, I'm looking for something like: NSLog(@"storage type: %@",…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
0
votes
1 answer

RestKit with ASIHTTPRequest

Is it possible use RESTKit with ASIHTTPRequest? I have been using ASIHTTPRequest but it seems to be deprecated and I read that RESTKit is the newer library. I just want to know if I can fall back to ASIHTTPRequest if I need to later. Thanks
scimob_p
  • 27
  • 4
0
votes
1 answer

TFHpple returning null as response

I am trying to use TFHpple in my project, and here is the code for that... its fairly simple to understand: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. NSURL *url = [NSURL…
Maverick
  • 2,738
  • 24
  • 91
  • 157
0
votes
1 answer

Implementation of Async Request causing many leaks

I've inherited a project that uses of ASIHttpRequest for all network communication. I am unclear as to which specific version we're using. All I can tell is that, from the .h files, the oldest creation date on a particular file is 17/08/10…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
0
votes
2 answers

How can I release 'request' in my project that using ARC?

As a beginner of iOS developer. I use ARC in my project. And I even use ASIHttpRequest to make some work easier. As you know, ASIHttpRequest not support ARC. I've added the -fno-objc-arc compiler flag to make it work. Now, here is my question. How…
Nathan Bao
  • 51
  • 1
  • 7
0
votes
1 answer

using ASIHTTPRequest

I wonder if any one could help me with the issue of HOW TO KEEP INAPP PURCHASE DOWNLOADING WHEN THE DEVICE GOES TO SLEEP MODE USING ASIHTTPREQUEST, i did an application that contains some music files to be purchased and downloaded in the app, but if…
0
votes
1 answer

ASIHTTPRequest build-in authentication dialog is removing my MBProgressHUD. How can I show it again?

I am trying to show my download progress with MBProgressHUD. I am using the following code: [HUD showWhileExecuting:@selector(downloadFile) onTarget:self withObject:nil animated:YES]; The server is on basic http authentication. If I provide the…
Max
  • 3,371
  • 2
  • 29
  • 30
0
votes
2 answers

Web Service sending information to iPhone

I created a couple web services for my app as follows. 1. Allows a host device to send its information to the web service and will store it in a sql database. 2. Allows a client device to see all nearby devices based on the information in the sql…
Eric
  • 5,671
  • 5
  • 31
  • 42
0
votes
0 answers

ASIHTTPRequest returns different formatted html over 3G and WIFI

I am downloading some http using ASIHTTPRequest and parsing iut to get certain text from it however I have found the my parsing doesnt work (resulting in crashes) when using 3G. It seems that the returned html doesn't have line feeds in it like it…
Darren
  • 10,182
  • 20
  • 95
  • 162
0
votes
1 answer

Iphone> Uploading UIImage object to server via ASIHTTPRequest, photo name?

I got a UIImage object with no name. (but when I save UIImage to my photo library it gets a name like IMG_00000.jpg) I just don't know how to use this name for request parameter. (or whatever name it is...) That should be like, `[request…
Ghostino Doggio
  • 351
  • 1
  • 4
  • 11
0
votes
1 answer

ASIHTTPRequest appendPostData not working

I want to send String Data to a php server using the ASIHTTPRequest appendPostData method but its not working. ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request appendPostData:[@"123456"…
user944351
  • 1,213
  • 2
  • 19
  • 27
0
votes
1 answer

How to Add ASIHTTPRequest to a running ASINetworkQueue?

I have been trying to fire multiple download requests using ASIHTTP library. I am able to start the download for the 1st request... but when I add another ASIHTTPRequest to the queue, its not downloading.. Can you plz suggest anyway to make the next…
Shwet Solanki
  • 345
  • 3
  • 12
0
votes
1 answer

How to do Caching with ASIHTTPDownloadCache?

In my code, I am downloading all of the images in the beginning of the application lifecycle: [ASIHTTPRequest setDefaultCache:[ASIDownloadCache sharedCache]]; NSURL *url = [NSURL URLWithString:[item imagePath]]; __block ASIHTTPRequest…
Burak
  • 5,706
  • 20
  • 70
  • 110
0
votes
1 answer

uploading a txt file using ASIHTTPRequest

I am having problems uploading a data file to a server. On the objective-c side everything seems to be working (I enabled a progress bar which slowly increases to 100%). Here is the code (you can assume uploadURL is the correct URL and outFilePath…
exolaris
  • 27
  • 3
  • 9
0
votes
3 answers

iOS - ASIHTTPRequest - Trying to parse through responseString

I've spent about 16 hours researching and attempting different code changes, but cannot figure this one out. I have an iOS app that consumes a website using ASIHTTPrequest: -(void)refresh{ NSURL *url = [NSURL…
Fostenator
  • 83
  • 2
  • 12