Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

levups/http-tester

Repository files navigation

http-tester

A tiny webservice which returns a http error page from specified code in parameters.

Setup

http-tester is a little sinatra application.

To launch server, either rackup -p 5000 or use provided Procfile with foreman start.

Usage

$ curl http://localhost:5000/code/200
OK

$ curl http://localhost:5000/code/500
Internal Server Error

$ curl -I http://localhost:5000/code/500
HTTP/1.1 500 Internal Server Error
Content-Type: text/html;charset=utf-8
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Length: 21

About

Simple application you test HTTP requests against

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published