diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..15a610d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/wbox-5.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..867d235 --- /dev/null +++ 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 [ options ] +.br +\fBwbox\fP servermode webroot [serverport (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 +Stop after 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 +Use as Host: field in HTTP request +.TP +.I timesplit +Show transfer times for different data chunks +.TP +.I wait +Wait seconds between requests. Default 1. +.TP +.I clients +Spawn concurrent clients (via fork()). +.TP +.I referer +Send the specified referer header. +.TP +.I cookie +Set cookie name=val, can be used multiple times. +.TP +.I maxclients +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 . +.PP +This manual page was written by Alberto Furia , +for the Debian project (and may be used by others). diff --git a/wbox.spec b/wbox.spec new file mode 100644 index 0000000..b7f71d6 --- /dev/null +++ b/wbox.spec @@ -0,0 +1,122 @@ +Name: wbox +Version: 5 +Release: 25%{?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 + +BuildRequires: make +BuildRequires: gcc + +%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 README +%license COPYING +%{_bindir}/* +%{_mandir}/man1/* + +%changelog +* Sat Jan 21 2023 Fedora Release Engineering - 5-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 5-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 5-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 5-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 5-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 5-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 5-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 5-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 5-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 5-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Mar 06 2018 Fabian Affolter - 5-15 +- Fix BR + +* Fri Feb 09 2018 Fedora Release Engineering - 5-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 5-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 5-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 27 2013 Fabian Affolter - 5-5 +- Whitespaces removed +- Comment added + +* Thu Jan 10 2012 Fabian Affolter - 5-4 +- Minor updates + +* Tue Dec 27 2011 Athmane Madjoudj - 5-3 +- Use version macro +- Remove rm -rf buildroot + +* Mon Dec 19 2011 Athmane Madjoudj - 5-2 +- Add manpage from Debian project +- Some minor fixes + +* Mon Dec 19 2011 Athmane Madjoudj - 5-1 +- Initial spec