Added support for sending both url encoded post data and plain bytes