Using NSOutputStream to POST to url
So all I want to do is send a POST request to a url. Now I tried using NSURLRequest/NSURLConnection, but was having problems with that and decided to move to a lower level, also because I want to send large files and thought dealing directly with streams might be better. But the output stream delegate never seems to be called, and I can't seem to find examples using NSOutputStream's initWithURL . NSURL *url = [NSURL URLWithString:NSString stringWithFormat: @"http://url"]; self.outputStream = [[NSOutputStream alloc] initWithURL:url append:NO]; [outputStream retain]; [outputStream setDelegate