资源简介
http_load修改版,只支持post请求,且按顺序执行,参考https://blog.csdn.net/lala9517/article/details/79870755

代码片段和文件信息
/* http_load - multiprocessing http test client
**
** Copyright ?1998199920012016 by Jef Poskanzer .
** All rights reserved.
**
** Redistribution and use in source and binary forms with or without
** modification are permitted provided that the following conditions
** are met:
** 1. Redistributions of source code must retain the above copyright
** notice this list of conditions and the following disclaimer.
** 2. Redistributions in binary form must reproduce the above copyright
** notice this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
**
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ‘‘AS IS‘‘ AND
** ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
** ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
** FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
** DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS
** OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION)
** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT
** LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
** OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF
** SUCH DAMAGE.
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifdef USE_SSL
#include
#include
#include
#endif
#include “version.h“
#include “port.h“
#include “timers.h“
#if defined(AF_INET6) && defined(IN6_IS_ADDR_V4MAPPED)
#define USE_IPV6
#endif
#define max(ab) ((a)>=(b)?(a):(b))
#define min(ab) ((a)<=(b)?(a):(b))
/* How long a connection can stay idle before we give up on it. */
#define IDLE_SECS 60
/* Default max bytes/second in throttle mode. */
#define THROTTLE 3360
/* How often to show progress reports. */
#define PROGRESS_SECS 60
/* How many file descriptors to not use. */
#define RESERVED_FDS 3
typedef struct {
char* url_str;
int protocol;
char* hostname;
unsigned short port;
#ifdef USE_IPV6
struct sockaddr_in6 sa_in;
#else /* USE_IPV6 */
struct sockaddr_in sa_in;
#endif /* USE_IPV6 */
int sa_len sock_family sock_type sock_protocol;
char* filename;
char* filedata;
int got_bytes;
long bytes;
int got_checksum;
long checksum;
} url;
static url* urls;
static int num_urls max_urls num_run_urls;
typedef struct {
char* str;
struct sockaddr_in sa_in;
} sip;
static sip* sips;
static int num_sips max_sips;
/* Protocol symbols. */
#define PROTO_HTTP 0
#ifd
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-09 18:41 http_load_post\
文件 6148 2018-04-09 18:41 http_load_post\.DS_Store
目录 0 2018-04-09 18:41 __MACOSX\
目录 0 2018-04-09 18:41 __MACOSX\http_load_post\
文件 120 2018-04-09 18:41 __MACOSX\http_load_post\._.DS_Store
文件 97 2018-04-04 11:15 http_load_post\FILES
文件 24760 2018-04-09 18:30 http_load_post\http_load
文件 5414 2018-04-04 11:15 http_load_post\http_load.1
文件 48886 2018-04-09 18:30 http_load_post\http_load.c
文件 1178 2018-04-04 11:15 http_load_post\make_test_files
文件 1682 2018-04-04 11:15 http_load_post\Makefile
文件 2504 2018-04-04 11:15 http_load_post\port.h
文件 1035 2018-04-04 11:15 http_load_post\README
文件 7362 2018-04-04 11:15 http_load_post\timers.c
文件 3832 2018-04-04 11:15 http_load_post\timers.h
文件 4760 2018-04-04 11:15 http_load_post\timers.o
文件 163 2018-04-04 11:15 http_load_post\version.h
- 上一篇:计算方法实验答案哈工大
- 下一篇:Hopfield人工神经网络求解TSP问题附论文
相关资源
- Histamine excites rat lateral vestibular nucle
- Diltiazem augmented pentobarbital-induced LORR
- 易语言post提交示例
- 利用一个循环队列实现顺序栈重新排
- postgresql驱动jar包
- Post Processing Profiles 3.1
- 易语言post登录DZX2论坛读个人资料源码
- 谷歌浏览器插件Postman_4.1.3和安装流程
- Postman for chrome-V5.4.0_0汉化版
- 顺序表的基本算法(实验)
- 关于SONY笔记本驱动与软件的正确安装
- Cimatron西门子专用后处理
- Xenocode+Postbuild+2010+for+.NET程序混淆器(
- 论文研究 - 国际建筑工程联合会FIDI
- postman中文文档
- 3 + 1维UN规范-希格斯系统的颜色风味锁
- 学术会议海报模板
- libcurl 提交post表单数据 上传图片 d
- Postern-3.1.2.apk.zip
- UML银行系统建模内含顺序图,活动图
- PostMan最全使用教程 164页全中文全模块
- 3M Post-it Notes Lite
- postman 5.5.2.crx
- 国际学术会议poster模板
- 本地测试接口的POST工具
- ESP8266 post源码 post.zip
- 接口测试神器postman和(源码)
- 国际学术会议poster模板5个
- PAT——一种高性能软件验证工具
- 轻松搭建Postfix 邮件服务器系统
评论
共有 条评论