From 50a39caa81a635eb6f78ff78bc47f5cbd6a9515a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 18 Aug 2011 09:59:36 +0200 Subject: [PATCH] print the HTTP response --- qcsrc/server/cl_player.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 2b74129eb..c1a836d9b 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -18,7 +18,7 @@ void WeaponStats_ready(entity fh, entity pass, float status) { float i, j, n, ibot, jbot, idx; vector v; - string prefix; + string prefix, s; switch(status) { case URL_READY_CANWRITE: @@ -48,7 +48,10 @@ void WeaponStats_ready(entity fh, entity pass, float status) weaponstats_buffer = -1; break; case URL_READY_CANREAD: - print("Got response from weapon stats server\n"); + print("Got response from weapon stats server:\n"); + while((s = url_fgets(fh))) + print(" ", s, "\n"); + print("End of response.\n"); url_fclose(fh, WeaponStats_ready, world); break; case URL_READY_CLOSED: -- 2.39.2