This actually extends the Socket Java class giving an opportunity to go via an HTTP proxy server with HTTP Basic authentication (BA). By itself, this program would be useful for receiving information in a command-line interface (CLI). Feel free to find another use for this class.
MilcovLib is a PHP library for CLI execution -- it supports all the typical CLI tasks, such as parameter parsing, VT100 colour output, syslog error output etc. Currently the status is pre-alpha (VT100 codes - colour and movement) -- sample code included.