Added `headersOnly` option for Connection, moved #getFilesize back to curl