The startImmediately parameter is a BOOL, not a string. Use YES instead of @"YES" and see if that helps.
Tom W. On Aug 9, 2011, at 10:44 AM, Amy Gibbs wrote: > I'm certainly noy tied to FTP, and I'll have a go with NSURLConnection. I did > try to use that for another part but I just couldn't get it to work. Is there > a particular sample/tutorial you could recommend? > > In the following code, accessing the URL in a webView works, but the > NSURLConnection doesn't; > [code] > > NSURL *uploadURL = [[NSURL alloc] initWithString:escapedUrl]; > NSMutableURLRequest* post = [NSMutableURLRequest > requestWithURL: uploadURL]; > //NSURLConnection *connect = [NSURLConnection > initWithRequest:post delegate:self startImmediately:@"YES"]; > NSLog (@"uploadurl is: %@", uploadURL); > > > [[uploadWeb mainFrame] loadRequest:[NSURLRequest > requestWithURL:uploadURL]]; > > [/code] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com