How can I force an applet to use HTTP/1.1?
Created May 4, 2012
John Zukowski Instead of using a URL/URLConnection, open the Socket directly, and in your request, specify the HTTP version:
out.print("GET " + urlString + " HTTP/1.1 ");The HTTP protocol waits for a CRLF (indenpendently of its client's architecture) at the end of the Request Line, so don't use println.
Explicitly RFC 2616 says:
Request-Line = Method SP Request-URI SP HTTP-Version CRLF