This was being followed in handleProxyPostOrPut but for Get request line was ended with \n
handleProxyRequest function line number 385
remotePrintWriter.print(method + " " + uri + " HTTP/1.0\n");
Because of this Get request was not working on some servers in proxy mode
Changed the code for Get request to end with \r\n as per standard
As per HTTP 1.0 standard, request lines should end with CR LF i.e. \r\n https://www.w3.org/Protocols/HTTP/1.0/spec.html#Request-Line Request-Line = Method SP Request-URI SP HTTP-Version CRLF
This was being followed in handleProxyPostOrPut but for Get request line was ended with \n handleProxyRequest function line number 385 remotePrintWriter.print(method + " " + uri + " HTTP/1.0\n");
Because of this Get request was not working on some servers in proxy mode
Changed the code for Get request to end with \r\n as per standard