HTTP Response 414
Clash Royale CLAN TAG #URR8PPP HTTP Response 414 I'm sending a POST Request using Java HttpURLConnection. I got 414 Response using the Approach 1 Approach 1 : urlString = urlString + "?" + getParameters(params); In Approach 1, I append the parameters to the URL. The parameter is very long and hence I got 414 Response Code. So I tried the below approach. Approach 2 : In this approach I sent the parameters as form data. Now, the server does not receive the complete data or does not receive the data at all. URL url = new URL(urlString); connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("POST"); connection.setDoInput(true); connection.setDoOutput(true); connection.setUseCaches(false); connection.setAllowUserInteraction(true); connection.setRequestProperty("Content-Type","multipart/form-data;boundary=" + boundary); if(headers != null) { ...