#define PHP_CURL_RETURN 4
#define PHP_CURL_ASCII 5
#define PHP_CURL_BINARY 6
+#define PHP_CURL_IGNORE 7
/* {{{ curl_write
*/
zval_ptr_dtor(&retval);
break;
}
+ case PHP_CURL_IGNORE:
+ length = size * nmemb;
+
+ break;
}
return length;
ch->handlers->write->method = PHP_CURL_STDOUT;
ch->handlers->write->type = PHP_CURL_ASCII;
ch->handlers->read->method = PHP_CURL_DIRECT;
+ ch->handlers->write_header->method = PHP_CURL_IGNORE;
curl_easy_setopt(ch->cp, CURLOPT_NOPROGRESS, 1);
curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0);