client side implementation of the scgi protocol