The request line and MIME header are sent as soon as the URLConnection connects.
URLConnection
Then getOutputStream() returns an output stream on which you can write the x-www-form-urlencoded name-value pairs.
getOutputStream()