Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed writing body in libcurl

Tags:

c++

libcurl

I am using libcurl for a small program that gets data from an input url. But i sometimes get an error from the pErrorBuffer like:

Failed writing to body (something != somethingelse)

What does this mean? I mean in what situation is this error created?

like image 608
Prasanth Madhavan Avatar asked Oct 09 '22 15:10

Prasanth Madhavan


1 Answers

It means your write callback didn't return the same number of bytes as was passed into it!

like image 162
Daniel Stenberg Avatar answered Oct 12 '22 10:10

Daniel Stenberg