display headers of connection before checking success