JCMais / node-libcurl

libcurl bindings for Node.js
https://npmjs.org/package/node-libcurl
MIT License
666 stars 118 forks source link

read raw msg #400

Closed oopses closed 12 months ago

oopses commented 12 months ago

sorry,i set wrong opt

JCMais commented 12 months ago

Hey @oopses, could you add more details about the solution? What option was missing?

Anything I can improve on the docs?

oopses commented 12 months ago

Hey @oopses, could you add more details about the solution? What option was missing?

Anything I can improve on the docs?

Sorry, I didn't provide complete information. I didn't have an idea at first, so I thought of using the C++ demo to try it out and find a property related https://curl.se/libcurl/c/CURLOPT_FAILONERROR.html https://github.com/JCMais/node-libcurl/blob/887949944dce38a19ee4ecbc5854aabe757e2a46/src/Curl.cc#L119C4-L119C4

After setting the above to false, curl will continue to read data, and it can be processed in combination with statusCode

👍node-libcurl is fantastic