I am trying to send a sentence from my application to a php file on my web server, I tested a php script in my browser that sends an email to the user and saves the sentence in my database, which all works fine. And when I run the following script, I get a successful connection through IOS, but I do not get the results in my database.
NSString *post = [NSString stringWithFormat:@"http://blahblah.com/suggest.php?s=%@&n=%@&e=%@", suggestion, name, email];
I checked all the lines and encoded all the spaces with% 20 etc. Can anyone see any obvious reason why my script will not work?
What is the easiest way to make an HTTP request from my application without opening a safari?
source share