--- parser3/src/main/pa_http.C 2020/12/16 15:04:47 1.111 +++ parser3/src/main/pa_http.C 2020/12/17 11:50:44 1.112 @@ -14,7 +14,7 @@ #include "pa_vfile.h" #include "pa_random.h" -volatile const char * IDENT_PA_HTTP_C="$Id: pa_http.C,v 1.111 2020/12/16 15:04:47 moko Exp $" IDENT_PA_HTTP_H; +volatile const char * IDENT_PA_HTTP_C="$Id: pa_http.C,v 1.112 2020/12/17 11:50:44 moko Exp $" IDENT_PA_HTTP_H; #ifdef _MSC_VER #include @@ -1056,6 +1056,7 @@ ssize_t HTTPD_request::pa_recv(int sockf ssize_t result=recv(sockfd, buffer, len, 0); ALARM(0); LOG(pa_log("httpd [%d] recv got %d bytes", sockfd, result)); + LOG(pa_log("httpd [%d] %s", sockfd, buffer)); return result; } } @@ -1168,7 +1169,8 @@ size_t HTTPD_Connection::read_post(char } size_t HTTPD_Connection::send_body(const void *buf, size_t size) { - LOG(pa_log("httpd [%d] response %d", sock, size)); + LOG(pa_log("httpd [%d] response %d bytes", sock, size)); + LOG(pa_log("httpd [%d] %s", sock, buf)); if(send(sock, (const char*)buf, size, 0) != (ssize_t)size) { int no=pa_socks_errno(); throw Exception("httpd.write", 0, "error sending response: %s (%d)", pa_socks_strerr(no), no);