[wbox] Initial import

Fabian Affolter fab at fedoraproject.org
Wed Mar 6 06:54:28 UTC 2013


commit 21b96e2efe7f87ff0b00b5a791dcb4a10b0aa41e
Author: Fabian Affolter <mail at fabian-affolter.ch>
Date:   Wed Mar 6 07:54:13 2013 +0100

    Initial import

 .gitignore |    1 +
 sources    |    1 +
 wbox.1     |   93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 wbox.spec  |   58 +++++++++++++++++++++++++++++++++++++
 4 files changed, 153 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..15a610d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/wbox-5.tar.gz
diff --git a/sources b/sources
index e69de29..867d235 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a95ca2c69982db10704b5ed482c9c722  wbox-5.tar.gz
diff --git a/wbox.1 b/wbox.1
new file mode 100644
index 0000000..a01f11f
--- /dev/null
+++ b/wbox.1
@@ -0,0 +1,93 @@
+.TH WBOX 1 "December 10, 2009"
+.SH NAME
+wbox \- HTTP testing tool and configuration-less HTTP server
+.SH SYNOPSIS
+\fBwbox\fP <url> [ options ]
+.br
+\fBwbox\fP servermode webroot <path> [serverport <portnumber> (def 8081)]
+.PP
+.SH DESCRIPTION
+\fIwbox\fP aims to help you having fun while testing HTTP related stuff. You can use it to perform many tasks, including the following:
+.PP
+- Benchmarking how much time it takes to generate content for your web application.
+.PP
+- Web server and web application stressing.
+.PP
+- Testing virtual domains configuration without the need to alter your local resolver.
+.PP
+- Use it as a \fBconfiguration-less HTTP server\fP to share files!
+.SH OPTIONS
+
+.PP
+.TP
+.I <number>
+Stop after <number> requests
+.TP
+.I compr
+Send Accept-Encoding: gzip,deflate in request
+.TP
+.I showhdr 
+Show the HTTP reply header
+.TP
+.I dump
+Show the HTTP reply header + body
+.TP
+.I silent
+Don't show status lines
+.TP
+.I head
+Use the HEAD method instead of GET
+.TP
+.I http10
+Use HTTP/1.0 instead of HTTP/1.1
+.TP
+.I close
+Close the connection after reading few bytes
+.TP
+.I host	<hostname>
+Use <hostname> as Host: field in HTTP request
+.TP
+.I timesplit
+Show transfer times for different data chunks
+.TP
+.I wait	<number>     
+Wait <number> seconds between requests. Default 1.
+.TP
+.I clients <number>
+Spawn <number> concurrent clients (via fork()).
+.TP
+.I referer <url>
+Send the specified referer header.
+.TP
+.I cookie <name> <val>
+Set cookie name=val, can be used multiple times.
+.TP
+.I maxclients <number>
+Max concurrent clients in \fBserver mode\fI (default 20).
+.TP
+.I \-h or \-\-help
+Show this help.
+.TP
+.I \-v
+Show version.
+.SH USAGE EXAMPLES
+.LP
+wbox wikipedia.org                  (simplest, basic usage)
+.LP
+wbox wikipedia.org 3 compr wait 0   (three requests, compression, no delay)
+.LP
+wbox wikipedia.org 1 showhdr silent (just show the HTTP reply header)
+.LP
+wbox wikipedia.org timesplit        (show splitted time information)
+.LP
+wbox 1.2.3.4 host example.domain    (test a virtual domain at 1.2.3.4)
+.LP
+wbox servermode webroot /tmp/mydocuments  (Try it with http://127.0.0.1:8081)
+.SH TUTORIAL
+Wbox is trivial to use but, in order to understand better what wbox is and how to use it,
+you may want to read the TUTORIAL inside the /usr/share/doc/wbox/ directory.
+.SH AUTHOR
+wbox was written by Salvatore 'antirez' Sanfilippo <antirez at gmail.com>.
+.PP
+This manual page was written by Alberto Furia <straluna at email.it>,
+for the Debian project (and may be used by others).
diff --git a/wbox.spec b/wbox.spec
new file mode 100644
index 0000000..da1c495
--- /dev/null
+++ b/wbox.spec
@@ -0,0 +1,58 @@
+Name:           wbox
+Version:        5
+Release:        5%{?dist}
+Summary:        HTTP testing tool and configuration-less HTTP server
+
+License:        BSD
+URL:            http://www.hping.org/wbox/
+Source0:        http://www.hping.org/%{name}/%{name}-%{version}.tar.gz
+# Man page from http://patch-tracker.debian.org/patch/debianonly/view/wbox/5-1
+Source1:        wbox.1
+
+%description
+Wbox aims to help you having fun while testing HTTP related stuff.
+You can use it to perform many tasks, including the following.
+ * Benchmarking how much time it takes to generate content
+   for your web application.
+ * Web server and web application stressing.
+ * Testing virtual domains configuration without the need to alter
+   your local resolver.
+ * Check if your redirects are working correctly emitting
+   the right HTTP code.
+ * Test if the HTTP compression is working and if it is actually
+   serving pages faster.
+ * Use it as a configuration-less HTTP server to share files!
+
+%prep
+%setup -q
+
+%build
+make %{?_smp_mflags} CFLAGS="%{optflags}" 
+
+%install
+install -Dp -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
+install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
+
+%files
+%doc AUTHORS Changelog COPYING README
+%{_bindir}/*
+%{_mandir}/man1/*
+
+%changelog
+* Wed Feb 27 2013 Fabian Affolter <mail at fabian-affolter.ch> - 5-5
+- Whitespaces removed
+- Comment added
+
+* Thu Jan 10 2012 Fabian Affolter <mail at fabian-affolter.ch> - 5-4
+- Minor updates
+
+* Tue Dec 27 2011 Athmane Madjoudj <athmane at fedoraproject.org> - 5-3
+- Use version macro
+- Remove rm -rf buildroot
+
+* Mon Dec 19 2011 Athmane Madjoudj <athmane at fedoraproject.org> - 5-2
+- Add manpage from Debian project
+- Some minor fixes
+
+* Mon Dec 19 2011 Athmane Madjoudj <athmane at fedoraproject.org> - 5-1
+- Initial spec


More information about the scm-commits mailing list