Requests 是用Python语言编写,基于 urllib,采用 Apache2 Licensed 开源协议的 HTTP 库。它比 urllib 更加方便,可以节约我们大量的工作,完全满足 HTTP 测试需求。Requests 的哲学是以 PEP 20 的习语为中心开发的,所以它比 urllib...
分类:
编程语言 时间:
2014-12-16 11:29:07
阅读次数:
337
By default your HTTP requests with the $https service in Angular arenotcached. By setting some options, you can turn caching on./** * Created by Answe...
分类:
Web程序 时间:
2014-12-16 00:55:06
阅读次数:
491
web发布包 web package deployment Enabling Cross-Origin Requests in ASP.NET Web API 2 Enabling CRUD Operations in ASP.NET Web API 1
分类:
其他好文 时间:
2014-12-15 23:32:03
阅读次数:
182
突然发现公司Tableau服务器的数据库大小急剧增加,因此决定直接连上数据库排查.过程记录如下:最后发现有个http_requests 表体积巨大(7G),本来以为是数据缓存什么的.结果是日志问题o(╯□╰)o. 因为公司用的Tableau版本比较低无法直接查看该表,暂时没动它,不知道会不会影响性能...
分类:
数据库 时间:
2014-12-14 22:27:53
阅读次数:
1441
一个很简单的爬虫,爬取中大周边地点的点评信息。# -*- coding: utf-8 -*-import requestsimport reimport timedef placeSplider(name, star, url): time.sleep(5) res = requests...
分类:
其他好文 时间:
2014-12-12 22:08:27
阅读次数:
288
参数 -n requests???? Number of requests to perform //在测试会话中所执行的请求个数。默认时,仅执行一个请求 -c concurrency Number of multiple requests to make //一次产生的请求个数。默认是一次一个...
分类:
Web程序 时间:
2014-12-11 16:09:17
阅读次数:
197
本来想调用阿里的ip接口查询ip归属地。结果发现阿里的接口非常不给力,主要是不准确,不过是免费的且有地区和ISP的信息。以下是实现代码#-*-coding:utf-8-*-
importrequests
defcheckip(ip):
URL=‘http://ip.taobao.com/service/getIpInfo.php‘
try:
r=requests.get(URL,para..
分类:
编程语言 时间:
2014-12-10 14:30:31
阅读次数:
207
APACHE自带的测试工具AB(apache benchmark).在APACHE的bin目录下。格式: ./ab [options] [http://]hostname[:port]/path参数: -n requests Number of requests to perform//在测试会话中...
分类:
Web程序 时间:
2014-12-10 12:08:42
阅读次数:
254
包尾加\n编程实践SYNOPSIS
#include
#include
ssize_t recv(int sockfd, void *buf, size_t len, int flags);与read相比,只能用于套接字文件描述符,而且多了一个flagsFlags常用取值:MSG_OOB(紧急指针,带外数据) This flag requests r...
分类:
其他好文 时间:
2014-12-05 12:46:02
阅读次数:
276
Requests 是用Python语言编写,基于 urllib,采用 Apache2 Licensed 开源协议的 HTTP 库。它比 urllib 更加方便,可以节约我们大量的工作,完全满足 HTTP 测试需求一、安装 Requests通过pip安装Code example:1$ pipinsta...
分类:
编程语言 时间:
2014-12-04 19:56:10
阅读次数:
266