socket: more error checks, only send request strlen
code cleanup, show server:port in output