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

How do I use ASI Http in iOS to POST data to a web service?

I am using the instructions provided in the ASI page here. I am trying to send some data to a web service and not seeing any results. This is my sendRequest method which gets called in viewDidLoad -(void)sendRequest { NSURL *url = [NSURL…
oky_sabeni
  • 7,672
  • 15
  • 65
  • 89
5
votes
1 answer

ASIHTTPRequest and http header

i would like to reproduce this http header call with ASIHTTPRequest. how i can do this please ?? Host www.host User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 Accept…
samir
  • 4,501
  • 6
  • 49
  • 76
5
votes
3 answers

ASIHTTPRequest alternative

I am using currently ASIHTTPRequest for communicating with the server, however it's causing crashes. The bug is known for a long time, but is still an issue. Therefore: Are there good alternatives to ASIHTTPRequest? I am flexible on the server side,…
Pascalius
  • 14,024
  • 4
  • 40
  • 38
5
votes
1 answer

ASIFormDataRequest POST returning website source code?

I am using the following code to set the username and password to a form on a website: ASIFormDataRequest *request = [[ASIFormDataRequest alloc] initWithURL:url]; [request setRequestMethod:@"POST"]; [request…
max_
  • 24,076
  • 39
  • 122
  • 211
5
votes
3 answers

Objective C: How to release delegates in this situation

I am using custom delegate objects to do some cleanup tasks after a request finishes. ASIHTTPRequest doesn't retain delegates so I can't autorelease them. Right now this is how I am allocating and releasing the delegates. App Delegate MyDelegate…
David
  • 7,310
  • 6
  • 41
  • 63
5
votes
5 answers

Incorrect NSStringEncoding value 0x0000 detected

I am using ASIHttpRequest library in iphone and when i try to do a GET request on the below URL i get this message and the request fails, please anyone if he/she has encountered this problem or know a possible solution to it please let me know.…
5
votes
4 answers

iPhone ASIHTTP - Distinguishing between API calls?

I currently have a view controller that implements ASIHTTP for handling API calls. My view controller fires 2 separate calls. I need to be able to distinguish between the 2 calls in the -requestFinished(ASIHTTPRequest*)request method, so I can…
dpigera
  • 3,339
  • 5
  • 39
  • 60
5
votes
2 answers

ASIHTTPRequest Download cache problem - unable to save/load date in cache

I am trying to save data into cache using ASIHTTP (http://allseeing-i.com/ASIHTTPRequest/How-to-use#using_a_download_cache). I am not sure what I am doing wrong but it seems not to be storing data into cache. The output of the following code is…
user348398
  • 511
  • 2
  • 7
  • 17
5
votes
2 answers

Do I need to retain autoreleased objects?

I'm using ASIHTTPRequest library and I want to be sure if I use it in a good way from the memory management point of view. I create: ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:someUrl]; I guess that according to the naming…
Jakub
  • 3,129
  • 8
  • 44
  • 63
5
votes
3 answers

Using Amazon Simple Storage Service (S3) on Android

What's the best way to use Amazon Simple Storage Service (S3) on Android? For iPhone I use ASIHTTPRequest. Is there something similar for Android?
hpique
  • 119,096
  • 131
  • 338
  • 476
5
votes
3 answers

Timeout a ASIHTTP request

I'm using the ASIHTTPRequest library to request some data from a server in my iPhone app. But i cannot figure out how to create a timeout so that if the server goes down or the iPhone doesnt have internet connection the app doesnt crash. Thanks in…
Zen_silence
  • 329
  • 3
  • 15
5
votes
3 answers

How to integrate ASIHTTPRequest in ARC

There are many errors when integrating ASIHTTPRequest library in arc mode. Is there a proper way to integrate non arc library.
Susitha
  • 3,339
  • 5
  • 27
  • 41
5
votes
4 answers

Sending AVAudioRecorder to server iOS

I am trying for the past few days to upload a locally saved sounde record to a server (which handels it with a php file and saves it to the server). the problem is that I can't find a way to do that. While recording the sound (AVAudioRecorder) it…
5
votes
3 answers

iPhone and ASIHTTPRequest - Unable to start HTTP connection

I am using the ASIHTTPRequest class in order to communicate with a web service and get a response. This is how I send a request to the server NSString *str = [NSString stringWithFormat:@"%@verifyLogin.json", serverUrl]; NSURL *url = [NSURL…
lostInTransit
  • 70,519
  • 61
  • 198
  • 274
5
votes
1 answer

In the server it is uploading but the pdf is not opening it says the attachment has some error

I generated the pdf in my iphone app, now i want to send that pdf to server. for that i am converting to NSData and i am sending. I searched in google and i find solution by using "POST" but it is working for images. In the server it is uploading…
Babul
  • 1,268
  • 2
  • 15
  • 42