improved authentication and cancellation errors detection
improved authentication and cancellation errors detection

JohnWong/STHTTPRequest,yoshimin/STHTTPRequest,nst/STHTTPRequest,nst/STHTTPRequest,msdgwzhy6/STHTTPRequest