parse host string and post data, add support for returning multiple mimetypes