This requirement is being driven by a government server, so I cannot change it. Do I need to manually code the transmission of the request headers or is there a way to make HttpURLConnection do whats needed? Or is there another object that might work in place of HttpURLConnection?
The HttpClient library provides a number of options that HttpURLConnection doesn't have; maybe selecting the protocol version is one of them.
As to sending the complete URL, I don't think that's possible. Does the ptotocol specification even allow that? It would in any case be superfluous, as the connection to the server has been established at that point, so sending the server name again doesn't provide any information.
Thanks much for this, much appreciated. I agree with what you are saying on the specification/entire URL. It isnt part of the specification I dont think. I may end up having to write directly to the stream. But at least I can try HttpClient and see what happens. Maybe I can "extend" to allow the variation. On a side note, this whole project is crazy - its a Canadian government thing, this is among their many requirements that make no sense