I think this will fix the issue.
Let me know what is the correct way to access the output content with older
libxml2:
memcpy(buffer, (char
*)xmlBufferContent(output_buf->conv), output_buf->conv->use);
or
memcpy(buffer, (char *)output_buf->conv->content, output_buf->conv->use);
Thanks you
Bren
Hello guys thank you for your attention. Let me share with you the code:
https://github.com/SpiderLabs/ModSecurity/blob/remotes/trunk/apache2/msc_crypt.c
Daniel, i think that would be the problem... there is something i'm missing
or doing wrong between the time i change the tree and start accessin
Hello,
Doing some tests even in libxml2 2.7.6 it is not working as i would expect
using xmlSetProp to change the values of href elements and then trying to
access the content output->conv-content is not giving me the entire data,
it is truncated.
So i think i'm missing something.
Any idea ?
Tha
Hello guys,
I have a feature where i get an element using xmlGetProp then i change it
and re-set using xmlSetProp.
Using the old libxml2 (2.7.6) i could copy the right http response body to
a local buffer just accessing the output->buffer->content
memcpy(buf, output_buf->buffer->content, output_