PrintWriter outputWriter = new PrintWriter(socket.getOutputStream());
PrintWriter outputWriter = new PrintWriter(outputStream);
  void sendRequest() throws IOException  {    // Create PrintWriter for easier sending of headers.    PrintWriter outputWriter = new PrintWriter(socket.getOutputStream());        // Send request including any request properties that were set.    outputWriter.print (getRequestMethod() + " " + url.getFile()                        + " HTTP/1.0\r\n");    // Set additional HTTP headers.    if (getRequestProperty ("Host") == null)      setRequestProperty ("Host", url.getHost());        // Write all req_props name-value pairs to the output writer.    Iterator itr = getRequestProperties().entrySet().iterator();    while (itr.hasNext())      {        Map.Entry e = (Map.Entry) itr.next();        outputWriter.print (e.getKey() + ": " + e.getValue() + "\r\n");      }    // One more CR-LF indicates end of header.    outputWriter.print ("\r\n");    outputWriter.flush();  }