This is the string I need to post http://www.mysite.com/save?details={“name”}
Iam trying the following code;
NSString *post =[NSString stringWithFormat:@”details={\”name\”}”];
NSString *hostStr = @"http://www.mysite.com/save?";
hostStr = [hostStr stringByAppendingString:post];
NSData *dataURL = [NSData dataWithContentsOfURL: [ NSURL URLWithString: hostStr]];
NSString *serverOutput = [[NSString alloc] initWithData:dataURL encoding: NSASCIIStringEncoding];
but the serverOutput always = null, unless i do just {name}. but i need the qutoes in there 🙁
You should convert everythign to valid HTTP symbols.
e.g.:
…my guess is that your webserver is refusing your invalid URL.