Q:

writeToURL objective-C not working

writeToURL
 NSString *url=@"http://192.168.1.100:88/outs.cgi?out=0";
    bool okay = [url writeToURL:url atomically:NO encoding:NSUTF8StringEncoding         
    error:NULL];
    if (!okay)
    {
        NSLog(@"Error writing to URL.");
    }

ObjectiveC does not work. I have a link to the electronic module to the LAN that is attached cord functions. Example: 192.168.1.100:88 / st0.xml and feedback are: visible content in the browser: 11111upupupup291157-890-890-000000-600-600-600-600-600-600 345325435643254364245624562465.
I'm interested in how to send a through writeToUrl and how to save it to a string that comes in response.
Please help. This method back to me"Error writing to URL."

A:

From NSString  writeToURL:atomically:encoding:error: documentation :

Only file URLs are supported.

You can not use network URL.

