Normally, the header returned by URLConnection.getHeaderFie
ld(0) will return the http response code:
HTTP/1.0 200 OK
The response from this site:
When I checked the first lines of the header using a socket, I found that the server actually returned:
HTTP 200 Document follows
I guess the lack of a version is confusing java. Is this a valid response ? Does the server have to include a version, or is there a problem in whatever URLConnection uses to parse the HTTP response ?