我想在 Twitter 上发送一个 GET 请求。
String request = "GET /** / HTTPS/1.1\r\n" +
"Host: twitter.com\r\n" +
"Connection: Close\r\n\r\n";
我在带有套接字的字节 [] 中发送请求并收到错误:“无法建立连接,因为目标机器主动拒绝了它”
它只在http上运行。http 和 https 有什么区别?