From the command line create an executable that according to a prototol:
- http
- https
- ftp
Returns a partially built URL: scheme://domain:port
$ ./executable ftp
ftp://ornl.gov:20
$ ./executable https
https://ornl.gov:443
$ ./executable http
http://ornl.gov:80
Below non OOP and OOP versions.