objective c - Managing multiple asynchronous NSURLConnection connections

objective c - Managing multiple asynchronous NSURLConnection connections

I have a ton of repeating code in my class that looks like the following: NSURLConnection*connection=[[NSURLConnection alloc] initWithRequest:request…


objective c - How can I get NSURLResponse body?

I'm writing an application that connect with a server using NSURLConnection. In the delegate method didreceiveresponse, if the status code is 404, I cancel the connection and I would like to show a me…


iphone - How to send json data in the Http request using NSURLRequest

I'm new to objective-c and I'm starting to put a great deal of effort into request/response as of recent. I have a working example that can call a url(via http GET) and parse the json returned. The…


objective c - Constantly growing memory allocation while fetching images over HTTP in iOS

I am implementing an iOS App that needs to fetch a huge amount of images over HTTP. I've tried several approaches but independently what I do, Instuments shows constantly increasing memory allocations…


objective c - How to send POST and GET request?

I want to send my JSON to a URL(POST and GET). NSMutableDictionary*JSONDict=[[NSMutableDictionary alloc] init];[JSONDict setValue:"myValue" forKey:"myKey"]; NSData*JSONData=[NSJSONSerializati…


ios - Read NSURLresponse

i am sending an object to this adrees:https://sandbox.itunes.apple.com/verifyReceipt with NSUrlconnection and i am trying to read it with this delegate method:-(void)connection:(NSURLConnection*…



objective c - Simple objective-c GET request

Most of the information here refers to the abandoned ASIHTTPREQUEST project so forgive me for asking again. Effectively, I need to swipe a magnetic strip and send the track 2 data to a webservice that…


objective c - NSURLConnection sendAsynchronousRequest:queue:completionHandler: making multiple requests in a row?

I have been using NSURLConnection's sendAsynchronousRequest:queue:completionHandler: method which is great. But, I now need to make multiple requests in a row. How can I do this while still using this…


iphone - NSURLRequest:Post data and read the posted page

In iOS(current target 5.0, Base SDK 5.1) how can I send a post request to a server, and then read the contents of the page. For example, the page takes a username and password, and then echos true or…


ios - how to create json in objective-c

NSData* jsonDataToSendTheServer; NSDictionary*setUser=[NSDictionary dictionaryWithObjectsAndKeys:[@"u" stringByAppendingString:my.id],@"id", @"G…




datataskwithrequest objective swift request example post ios get how nsurlconnection