supported (and ancient HTTP are no longer supported)
let (address, port, path) = parse_url url in
let buf = String.create tcp_bufsiz in
let (inchan, outchan) = init_socket address port in
- output_string outchan (sprintf "GET %s HTTP/1.0\r\n\r\n" path);
+ output_string outchan (sprintf "GET %s HTTP/1.0\r\n" path);
+ output_string outchan (sprintf "Host: %s\r\n\r\n" address);
+
flush outchan;
let (_, status) = Http_parser.parse_response_fst_line inchan in
(match code_of_status status with