Agreed.
I thought connect would send the request and wait for the response, precluding the possibility to write in the output stream with OutputStreamWriter but it doesn't seem to be the case.