Last active
April 20, 2016 02:27
-
-
Save mcqueenorama/8c7f795ad2f7e8f99e70b5b5636b065d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebServer server = new WebServerBuilder() | |
.port(13033) | |
.serve("/").at("/tmp/eded") | |
.build(); | |
System.out.println("Directory Listing is for:" + dir + ":on port:" + port + ":"); | |
server.start(); | |
???????????? | |
bmcquee$ curl -s -v localhost:13033 > /dev/null | |
* Rebuilt URL to: localhost:13033/ | |
* Trying ::1... | |
* Connected to localhost (::1) port 13033 (#0) | |
> GET / HTTP/1.1 | |
> Host: localhost:13033 | |
> User-Agent: curl/7.43.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 404 Not Found | |
< Date: Wed, 20 Apr 2016 02:22:50 GMT | |
< Cache-Control: must-revalidate,no-cache,no-store | |
< Content-Type: text/html; charset=ISO-8859-1 | |
< Content-Length: 278 | |
< | |
{ [278 bytes data] | |
bmcquee$ curl -s -v localhost:13033/zup.txt > /dev/null | |
* Trying ::1... | |
* Connected to localhost (::1) port 13033 (#0) | |
> GET /zup.txt HTTP/1.1 | |
> Host: localhost:13033 | |
> User-Agent: curl/7.43.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 404 Not Found | |
< Date: Wed, 20 Apr 2016 02:26:41 GMT | |
< Cache-Control: must-revalidate,no-cache,no-store | |
< Content-Type: text/html; charset=ISO-8859-1 | |
< Content-Length: 285 | |
< | |
{ [285 bytes data] | |
* Connection #0 to host localhost left intact | |
L-SB831WYFD5-M:serverRoot bmcquee$ ls -l /tmp/eded | |
total 8 | |
drwxr-xr-x 3 bmcquee wheel 102 Apr 19 18:01 Asda-Connect | |
drwxr-xr-x 3 bmcquee wheel 102 Apr 19 18:00 GeMC | |
drwxr-xr-x 3 bmcquee wheel 102 Apr 19 18:01 LabsSmartSourcing | |
drwxr-xr-x 3 bmcquee wheel 102 Apr 19 17:59 gyuan | |
drwxr-xr-x 3 bmcquee wheel 102 Apr 19 17:59 mmanga1 | |
drwxr-xr-x 3 bmcquee wheel 102 Apr 19 18:02 platform | |
drwxr-xr-x 5 bmcquee wheel 170 Apr 19 18:02 services | |
-rw-r--r-- 1 bmcquee wheel 5 Apr 19 18:05 zup.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment