轻量级HTTP GET/POST工具 py2request

码农软件 · 软件分类 · 网络工具包 · 2019-02-26 10:43:56

软件介绍

py2request 是轻量级 HTTP GET/POST 工具(适用于Python 2)

基于 MultipartPostHandler

特征: 简单的接口; 支持发送含非ASCII字符的(dict)values和文件名.

用法:pyrequest.request(url, data=None, has_files=False|True)

1、当`has_files`为否时,`data`可以是一个相对复杂的dict表单结构,例如:
    `{ "user": { "name": "bob", "age": "18"}, "colors": ["red", "blue", "green"] }`
2、当`has_files`为真时,`data`必须是简单的表单结构:
    `{ "username" : "bob", "password" : "riviera", "file" : open("filepath", "rb") }`
3、当`data`为`None`并且`has_files`为`False`时,便会使用GET请求。

本文地址:https://codercto.com/soft/d/163.html

The Intersectional Internet

The Intersectional Internet

Safiya Umoja Noble、Brendesha M. Tynes / Peter Lang Publishing / 2016

From race, sex, class, and culture, the multidisciplinary field of Internet studies needs theoretical and methodological approaches that allow us to question the organization of social relations that ......一起来看看 《The Intersectional Internet》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具