In a GET request, the parameters are sent as part of the URL. In a POST request, the parameters are sent as a body of the request, after the headers . To do a POST with HttpURLConnection, you need to write the parameters to the connection after you have opened the connection.