HH-39931 fix keyerror for took in debug.html and make possible to use other than curl httpclient