import requests
import json


def post(base_url, action_url, params):
    """
    发送post请求
    :param base_url:
    :param action_url:
    :param params:
    :return:
    """
    full_url = base_url + action_url
    # 请求头
    headers = {
        "Content-type": "application/json",
        'Upgrade': 'HTTP/1.1'
    }
    return requests.post(full_url, headers=headers, data=json.dumps(params), timeout=1)