small python http server to test code. do not use this to test http_concurrent_get.go as the server do not support concurrent
this server.py is used to test http_get.go and http_post.go
pip install -r requirements.txt
python server.py
send HTTP GET request. Print responsed content back to stdout
go run http_get.go http://127.0.0.1:8080/fakeapi
compile and run the binary
go build http_get.go
./http_get http://127.0.0.1:8080/fakeapi
send HTTP POST request. Print response content back to stdout
go run http_post.go http://127.0.0.1:8080/fakeapi
send concurrent HTTP GET request print out sequence number, len of result and time spent
go run http_concurrent_get.go http://google.com http://google.com http://google.com http://google.com http://google.com
list files in current directory orderedby size
go run list_files.go
connect to remote server by ssh and print remote stdout back to local stdout
go run ssh.go 10.1.232.21 df -h