allow custom headers in request(), return meaningful 'text/plain' response.
used as workaround for getVnc quirk of not returning a json object.