phmlabs/missingrequest

There is no license information available for the latest version (3.0.5) of this package.

Head outputs all http header information for a given website

3.0.5 2017-03-20 16:21 UTC

README

MissingRequest is a tool for checking if given urls are producing a defined set of http requests.

The tool is based on phantomJS and is able to execute javascript so you can be sure all the requests are called.

Installation

Installation of MissingRequest is easy. Just download the phar archive and run the tool.

curl -O -LSs http://pharchive.phmlabs.com/archive/phmLabs/MissingRequest/current/Missing.phar && chmod +x Missing.phar

Additionally phantomJS must be installed. If not already done you can find the installation guide here: http://phantomjs.org/download.html.

Commands

run

The run command runs checks if a given list of urls produce the right requests.

Example

Missing.phar run example/requests.list -o /tmp/test.xml -f xunit

This example will create a xunit conform xml file that can be read by the most continuous integration servers such as jenkins or bamboo.

info

The info command can be used to show all requests an url triggers when called.

Example

Missing.phar info http://www.amilio.de

create

The create command is used to create a config file. It calls an url an adds all triggered requests to the given yaml file. Afterwards you can remove the optional requests.

Example

Missing.phar create http://www.amilio.de /tmp/amilio.yml

If the amilio.yml file already exists it will be overwritten.

Configuration

Example

This example will check if the two urls (www.amilio.de/ and www.amilio.de/blog/2015/) produce requests against google, amilio and any given .de domain.

# 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