#!/usr/bin/env python# -*- coding: utf-8 -*-from flask import Flask from flask import request from flask import Response app = Flask(__name__) @app.route('/rtxim', methods=['POST']) def rtxim_post(): print str(request.get_data()) return '%s' % (request.get_data() or 'null') if __name__ == '__main__': app.run('0.0.0.0',port=4492)