protected void sendRequestHeaders(OutputStream os)
        throws IOException
    {
        writeString(os, iRequestMethod);
        os.write(32);
        if(iHttpProxyHost != null)
            writeString(os, iUri.toString());
        else
        if(iUri.getQuery() != null)
        {
            writeString(os, iUri.getPath());
            os.write(63);
            writeString(os, iUri.getQuery());
        } else
        {
            writeString(os, iUri.getPath());
        }
        os.write(32);
        os.write(VERSION);
        os.write(CRLF);
        iRequestProperties.put("Connection", "close"); //默认会写成close
        writeHeaders(os, iRequestProperties);
        os.write(CRLF);
        iState = 3;
    }

相关文章:

  • 2021-12-14
  • 2021-06-16
  • 2022-01-14
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-13
  • 2021-09-14
  • 2021-07-28
  • 2021-10-07
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案