Skip to content

Webrandom provides HTTP services analogous to /dev/null, /dev/random and /dev/zero.

License

Notifications You must be signed in to change notification settings

0intro/webrandom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Webrandom

Webrandom provides HTTP services analogous to /dev/null, /dev/random and /dev/zero.

This program is mostly useful as a dummy web server to measure performance of HTTP clients and proxies.

Usage

$ webrandom [ -http localhost:8080 ]

The following requests are supported:

  • POST /null
  • GET /random/<size in bytes>
  • GET /zero/<size in bytes>

Examples

Upload a file:

$ curl -X POST -d @rand http://localhost/null

Download a 1 GB file of random data:

$ curl -o rand http://localhost/random/1048576

Download a 1 GB file of zero data:

$ curl -o zero http://localhost/zero/1048576

About

Webrandom provides HTTP services analogous to /dev/null, /dev/random and /dev/zero.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages