import os,platform,uuid,urllib.parse,urllib.request,json def BeforeSystemRequests(): ''' the systeminfo uploads to api of .. ''' def get_system_version(): system_name = platform.system() if system_name == 'Windows' and os.name == 'nt': system_machine
报错内容 com.sun.jersey.api.client.UniformInterfaceException: PUT http://.jpg returned a response status of 400 Bad Request 因为跨服务器上传文件,文件名中里面含有中文名称,所以报错,解决: 让文件服务器支持utf-8编码或者将文件名变成英文.(最好的就是根据时间加随机数 或者是UUID来命名) 简单版的jsersey上传 @RequestMapping("/fileupload3&