+ requestFile.length() != 0 ? requestFile : "/";
+ (requestFile.length() != 0 ? requestFile : "/")
  void sendRequest() throws IOException  {    // Create PrintWriter for easier sending of headers.    PrintWriter outputWriter =      new PrintWriter(new OutputStreamWriter(outputStream, "8859_1"));         // Send request including any request properties that were set.    String requestFile = url.getFile();    outputWriter.print(getRequestMethod() + " "		       + requestFile.length() != 0 ? requestFile : "/";                       + " HTTP/1.1\r\n");    // Set additional HTTP headers.    if (getRequestProperty ("Host") == null)      setRequestProperty ("Host", url.getHost());        if (getRequestProperty ("Connection") == null)      setRequestProperty ("Connection", "Close");        if (getRequestProperty ("user-agent") == null)      setRequestProperty ("user-agent", userAgent);        if (getRequestProperty ("accept") == null)      setRequestProperty ("accept", "*/*");        if (getRequestProperty ("Content-type") == null)      setRequestProperty ("Content-type", "application/x-www-form-urlencoded");    // Set correct content length.    if (bufferedOutputStream != null)      setRequestProperty ("Content-length", String.valueOf (bufferedOutputStream.size()));    // 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();    // Write content    if (bufferedOutputStream != null)      {	bufferedOutputStream.writeTo (outputStream);	outputStream.flush();      }  }