#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @Copyright (C) ansjer cop Video Technology Co.,Ltd.All rights reserved. @AUTHOR: ASJRD018 @NAME: AnsjerFormal @software: PyCharm @DATE: 2019/6/22 17:45 @Version: python3.6 @MODIFY DECORD:ansjer dev @file: testOssPut.py @Contact: chanjunkai@163.com """ import requests url = 'http://statres.oss-cn-hongkong.aliyuncs.com/log%2F1561196710.log?OSSAccessKeyId=LTAIyMkGfEdogyL9&Expires=1561203910&Signature=9Rmp60bVgciREuyc8LZBwwVAI3E%3D' res = requests.put(url, data='1234981734913270947.txt') print(res)