Added ability to handle http challenges