allow custom headers in request(), return 'text/plain' response

used as workaround for getVnc quirk of not returning a json object.