Android - get request received EOFException
<p><strong>Code</strong>:</p>

<pre><code>    String recipeName = this.recipe.getName().replace(" ", "%20");;
    String recipeIngredients = this.recipe.getIngredients().replace(" ", "%20");;
    String recipeInstructions = this.recipe.getInstructions().replace(" ", "%20");;
    String recipeUserName = this.recipe.getUserName().replace(" ", "%20");;
    int recipeRate = this.recipe.getRate();
    int recipeAmountOfRate = this.recipe.getAmountOfRates();
    String link = "http://***My_Site***/createRecipe.php?recipeName="+recipeName+"&amp;recipeIngredients="+recipeIngredients
            +"&amp;recipeInstructions="+recipeInstructions+"&amp;recipeUserName="+recipeUserName+"&amp;recipeRate="+recipeRate+
            "&amp;recipeAmountOfRate="+recipeAmountOfRate;
    URL url = new URL(link);
    HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
    urlConnection.setChunkedStreamingMode(0);
    try {
        InputStream in = new BufferedInputStream(urlConnection.getInputStream());
        int ch;
        StringBuffer sb = new StringBuffer();
        while ((ch = in.read()) != -1) {
            sb.append((char) ch);
        }
        Log.e("Error", sb.toString());
    } catch(Exception e) {
        Log.e("Error", e.toString());
    } finally {
        urlConnection.disconnect();
    }
}
</code></pre>

<p>But i get the error:</p>

<blockquote>
  <p>E/Error: java.io.EOFException</p>
</blockquote>

<p>Why is that?
in previous requests the request went good.
Doed the URL request too long?</p>