Patches for HTTP compliance in check_http [sf#2810124] [#998]