diff --git a/http.c b/http.c index bb707a3..910d531 100644 --- a/http.c +++ b/http.c @@ -895,6 +895,7 @@ static int do_https_request(struct openconnect_info *vpninfo, const char *method } } + printf("request: %s\n", buf->data); result = openconnect_SSL_write(vpninfo, buf->data, buf->pos); if (rq_retry && result < 0) { openconnect_close_https(vpninfo, 0); @@ -909,6 +910,7 @@ static int do_https_request(struct openconnect_info *vpninfo, const char *method /* We'll already have complained about whatever offended us */ return buflen; } + printf("response: %s\n", *form_buf); if (result != 200 && vpninfo->redirect_url) { result = handle_redirect(vpninfo);