title: How can I send a POST request with spaces?
body: <p>I'm trying to send input from an edittext to PHP. If I send in something with no spaces it works ok, but crashes with spaces and says this:</p>
  
  <blockquote>
    <p>illegal character </p>
  </blockquote>
  
  <p>...which refers to the space.</p>
  
  <p>Obviously it's a matter of getting the quotes correct but for some reason I just can't get this right.</p>
  
  <p>Where do I add the quotes? </p>
  
  <p>Is it in Java during creating the URL?</p>
  
  <pre><code>http://example.com/android/project_group_notes_details.php?course=\'"+sessionCourse+"\'";
  </code></pre>
  
  <p>or while creating the Variable?</p>
  
  <pre><code>String sessionCouse = "\'Software Development With Spaces\'";
  </code></pre>
  
  <p>or is it somehow done server side?</p>