added detection for all http auth, changed argument parser to argparse