Hi,
I'm trying to do an asynchronous request with ASIHTTPRequest, but have some problem getting notified when the request is done.
-(void)doDownload{
NSURL *url = [NSURL URLWithString:@"http://www.someurl.com/?"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:@"someValue" forKe...
Hello,
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 advance
EDIT>>>
tt.Kilew your code doesnt work... I posted a bit of sample co...
Hi,
How can I set the session timeout using ASIHTTPRequest ?
Thanks
...
According to the website for ASIHTTPRequest:
If your requests are all of the same
broad type, but you want to
distinguish between them, you can set
the userInfo NSDictionary property of
each request with your own custom data
that you can read in your finished /
failed delegate methods.
How do I set userInfo?
NSURL *url...
I am using the following code (with ASIHTTPRequest) to attempt to upload php files from my iPhone to my LAN MAMP server running on my Macbook Pro. My objective-c and my php seem to be in line, but the files are not uploading.
OBJECTIVE-C CODE
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMas...
I'm trying to use ASIFormDataRequest to send a photo image from my
iPhone app to my server.
When I do so, the server sends back an error
message saying, "must be an image file," implying that there is
something wrong with the formatting of my image. (Of course, that
might not be the problem...but it's a good place to start.) I know ...
Hi,
I am working on iphone networking application.. I am using asihttp , a wrapper of the CFnetwork framework. http://allseeing-i.com/ASIHTTPRequest/
I want to build a server that sends some data on request from the client... I want this for the sole purpose of testing the application i write and understanding the networking more deep...
I have a view that will be displaying downloaded images and text. I'd like to handle all the downloading asynchronously using ASIHTTPRequest, but I'm not sure how to go about notifying the view when downloads are finished...
If I pass my view controller as the delegate of the ASIHTTPRequest, and then my view is destroyed (user navigates...
I have to login to a website that uses Windows Authentication. I am using ASIHTTPRequest to accomplish.
The problem is that I am able to download and display the source code of the HTML page with UIWebView but I could not figure out how to display the full content of the page including pictures, javascript etc.
Any ideas how to accomplis...
What is best practice to stream multiple files in one ASIHTTPRequest?
Right now, for one file I use:
....
ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:someUrl];
[request setShouldStreamPostDataFromDisk:YES];
[request appendPostDataFromFile:someFilePath];
[request startSynchronous];
How to stream multiple files withou...
Was wondering if it was a good idea to intergrate ASIHTTPRequest framework for HTTP requests for REST while using three20. three20 has TTURLRequest.
...
I modified the alias sample code from:
[request addRequestHeader: @"Content-Type" value: @"application/json"];
[request appendPostData:[[NSString stringWithFormat: @"{\"alias\": \"%@\"}", self.deviceAlias]
dataUsingEncoding:NSUTF8StringEncoding]];
to:
[request addRequestHeader: @"Content-Type" value:...
Hi,
I am experiencing problems using ASIHttpRequst. This is the error I get:
2010-04-11 20:47:08.176 citybikesPlus[5885:207] *** -[CALayer rackDone:]: unrecognized selector sent to instance 0x464a890
2010-04-11 20:47:08.176 citybikesPlus[5885:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** ...
I'm trying to track an event in my app using Yahoo Web Analytics. The code I am using looks like
ASIHTTPRequest *yahooTrack = [ASIHTTPRequest requestWithURL:
[NSURL URLWithString:@"http://s.analytics.yahoo.com/p.pl?a=xxxxxxxxxxxxx&js=no&b=yyyyyyyyyyyy&cf6=zzzzzzzzzzz"]];
yahooTrack.didFinishSelector = @selector(statistic...
Hi,
I have PHP script link, which responds YES or NO when we set post userName and emailID. I have used ASI framework.
When I try to connect with the following code, I get a null return.
NSURL *url = [NSURL URLWithString:@"https://abc.com/abctest/registration.php"];
ASIFormDataRequest *request = [[ASIFormDataRequest alloc] initWithU...
Looking at using either ObjectiveResource or ASIHTTPRequest ...
Which is superior for uploading images? Or is there a better option???
Are there any examples of using either or both to upload images (or any other binary content)?
Thanks
...
I am trying to apply the ASIHTTPRequest wrapper to a very basic Objective C program. I have already copied over the necessary files into my program and after giving myself an extreme headache trying to figure out how it works through their website I thought I would post a question on here. The files copied over were:
ASIHTTPRequestCon...
Hi
I am using the ASIHTTPRequest source code to download a file from a remote location. Surprisingly, the download happens but nothing happens after that. I have put in a log statement in the handleBytesAvailable method and can see the entire file worth of data is downloaded in parts and added to the fileDownloadOutputStream variable.
...
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 startAnimating];
NSString *urlString = [IP stringByAppendingString:@"Method1"];
NSURL *url =...
I have an iPhone application that posts data to a web application ... and I want to only accept data posted from an iPhone application that was purchased from the iTunes store.
Is there a way to do this? Is there something (or somethings) I can pass from the iPhone app to the web application that I can use to do such verification?
Tha...