Skip to content

Commit fe90114

Browse files
Added license and readme
1 parent 6f8d11c commit fe90114

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

LICENSE.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Benjamin Mestdagh
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Http Requester
2+
==============
3+
4+
A simple Java application to send HTTP requests. Created as an exercise for the Java course I took in Bruges.
5+
6+
Getting started
7+
---------------
8+
9+
You can lauch the application in the Swing GUI (default), or use it in the command line.
10+
To use the command line version, add the -cli switch.
11+
12+
### Command line options
13+
14+
The options will have no effect if you're using the GUI.
15+
16+
- `-cli | --cli` Run on the command line.
17+
- `-q | --quiet` Show no output (quiet mode).
18+
- `-d | --data` Show response data.
19+
- `-h | --headers` Show response headers.
20+
- `-t n | --threads n` Set the number of threads to use.
21+
- `-r n | --requests n` Set the number of requests to send.
22+
- `-c | --check-url` Check if the URL is valid before starting.
23+
- `-s n | --sleep n` Set the number of milliseconds between requests.
24+
- `-u url | --url url` The url to send the requests to.
25+
26+
- - -
27+
28+
License: MIT

src/httprequesterviews/HttpRequesterCli.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private void setOptions()
140140
o.setRequired(false);
141141
options.addOption(o);
142142

143-
o = new Option("t", "treads", true, "Set the number of threads.");
143+
o = new Option("t", "threads", true, "Set the number of threads.");
144144
o.setRequired(false);
145145
o.setArgs(1);
146146
options.addOption(o);

0 commit comments

Comments
 (0)