default connect timeout is 1 sec.
parse the response header array.