lib: add a wget test. nc test is disabled for a while.
lib: error message with perror