Whenever I attempt to post something to my PHP Server, I receive the following message. It seems as if the code is connecting to the server, but no data is returned, and the pos
"name=%@&email=%@&phash=%@" is not a proper url-encoded string. Each key-value pair has to be separated by an '&' character, and each key from its value by an '=' character. Keys and values are both escaped by replacing spaces with the '+' character and then encoded by stringByAddingPercentEscapesUsingEncoding
.
See application/x-www-form-urlencoded.
You can find a recipe how to do this in this blog post.