updated BasicTransport to act like Curl (processing, error reporting)