use streams instead of string representation for client to client transport
use HttpHeaders.ACCEPT_ENCODING instead of static String constant
make source port configurable