停止在中间的卷曲转移 [英] stop a curl transfer in the middle
本文介绍了停止在中间的卷曲转移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只能从一个回调函数中考虑curl_close()。
,但php会发出警告:
i could only think of curl_close() from one of the callback functions. but php throws a warning:
PHP警告:curl_close():尝试从回调中关闭cURL句柄。
PHP Warning: curl_close(): Attempt to close cURL handle from a callback.
任何想法如何做?
推荐答案
你可以返回false或什么不是当前的长度从回调函数下载数据以中止curl
you can return false or something what is not length of currently downloaded data from callback function to abort curl
这篇关于停止在中间的卷曲转移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文