title: Using HTTP Basic-Auth with Google App Engine URLFetch service
body: <p>How can I specify the username and password for making Basic-Auth requests with App Engine's <a href="http://code.google.com/intl/de/appengine/docs/java/urlfetch/" rel="noreferrer">URLFetch</a> service (in Java)?</p>
  
  <p>It seems I can set HTTP headers:</p>
  
  <pre><code>URL url = new URL("http://www.example.com/comment");
  HttpURLConnection connection = (HttpURLConnection) url.openConnection();
  connection.setRequestProperty("X-MyApp-Version", "2.7.3");        
  </code></pre>
  
  <p>What are the appropriate headers for Basic-Auth?</p>