}
break;
case CURLINFO_DATA_OUT:
- if (request->conv.last_type == CURLINFO_HEADER_OUT) {
- phpstr_appends(&request->conv.request, HTTP_CRLF);
- }
- phpstr_append(&request->conv.request, data, length);
- break;
case CURLINFO_HEADER_OUT:
- if (!EMPTY_HEADER(data, length)) {
- phpstr_append(&request->conv.request, data, length);
- }
+ phpstr_append(&request->conv.request, data, length);
break;
default:
#if 0
break;
}
-#if 0
+#if 1
fprintf(stderr, "DEBUG: %3d (%5zu) %.*s%s", type, length, length, data, data[length-1]=='\n'?"":"\n");
#endif
}
/* function accepts no args */
-#define NO_ARGS zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")
+#define NO_ARGS zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "");
/* CR LF */
#define HTTP_CRLF "\r\n"