It connects to the network but doesn't do the POST, what am I doing wrong?
How do you know that? Have you seen the server log? I'd guess that it produces an error on the server because you say that the content is of type 'application/x-www-form-urlencoded' but what you send isn't in that format.
Does that WiFi network has internet access?