*
*/
+/*
+ * Uncomment to dump an HTTP trace to stderr
+#define HTTP_TRACING 1
+ */
+
#include <ctype.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
}
len = len + rlen;
}
- /* write(2, buf, bytes); FIXME */
+
+#ifdef HTTP_TRACING
+ write(2, "\033[32m", 5);
+ write(2, buf, bytes);
+ write(2, "\033[30m", 5);
+#endif
return (1);
}
return(count);
}
#endif
- /* write(2, buf, count); FIXME */
+#ifdef HTTP_TRACING
+ write(2, "\033[34m", 5);
+ write(2, buf, count);
+ write(2, "\033[30m", 5);
+#endif
return(write(WC->http_sock, buf, count));
}