phmlabs / missingrequest
此包最新版本(3.0.5)没有提供许可证信息。
Head命令输出给定网站的完整HTTP头部信息
3.0.5
2017-03-20 16:21 UTC
Requires
- php: >= 5.4.0
- guzzlehttp/guzzle: ~6.0
- koalamon/cookiemakerhelper: dev-master
- koalamon/koalamonclient: dev-master
- phmlabs/html: ~2.1
- phmlabs/httpwebdriveradapter: dev-master
- phmlabs/xunitreport: ~1.0.0
- symfony/console: ~2.2
- symfony/yaml: ~2.2
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
This package is auto-updated.
Last update: 2024-08-29 03:47:38 UTC
README
MissingRequest是一个检查给定URL是否生成预定义HTTP请求集合的工具。
该工具基于phantomJS,能够执行JavaScript,因此可以确保所有请求都被调用。
安装
安装MissingRequest很简单。只需下载phar存档并运行该工具。
curl -O -LSs http://pharchive.phmlabs.com/archive/phmLabs/MissingRequest/current/Missing.phar && chmod +x Missing.phar
此外,还必须安装phantomJS。如果尚未安装,可以在以下位置找到安装指南:[http://phantomjs.org/download.html](http://phantomjs.org/download.html)。
命令
run
run命令用于检查给定URL列表是否生成正确的请求。
示例
Missing.phar run example/requests.list -o /tmp/test.xml -f xunit
此示例将创建一个xunit符合的xml文件,可以被大多数持续集成服务器(如jenkins或bamboo)读取。
info
info命令可用于显示当调用URL时触发的所有请求。
示例
Missing.phar info http://www.amilio.de
create
create命令用于创建配置文件。它调用一个URL并将所有触发的请求添加到指定的yaml文件中。之后,您可以删除可选请求。
示例
Missing.phar create http://www.amilio.de /tmp/amilio.yml
如果amilio.yml文件已经存在,它将被覆盖。
配置
示例
此示例将检查以下两个URL(www.amilio.de/ 和 www.amilio.de/blog/2015/)是否生成针对google、amilio和任何给定.de域的请求。
# amilio_example.yml urls: startpage: url: http://www.amilio.de requests: - http://www.google.com - http://www.amilio.de - www.(.*).de blog: url: http://www.amilio.de/blog/2015/ requests: - http://www.amilio.de - www.(.*).de