refactored HTTPConnector to allow pagegenerator test outside of the
project