rem: soap->error = soap->fposthdr(soap, "Content-Length", soap->tmpbuf);
add: err = soap->fposthdr(soap, "Content-Length", soap->tmpbuf);
context: soap_puthttphdr(struct soap *soap, int status, size_t count){ const char *s;  if (status == SOAP_FILE)    s = soap->http_content;  else if (status == SOAP_HTML)    s = "text/html; charset=utf-8";  else if (soap->mode & SOAP_ENC_DIME)    s = "application/dime";  else if (soap->version == 2)    s = "application/soap+xml; charset=utf-8";  else    s = "text/xml; charset=utf-8";  soap->error = soap->fposthdr(soap, "Content-Type", s);  if (soap->error)    return soap->error;#ifdef WITH_ZLIB  if (soap->omode & SOAP_ENC_ZLIB)#ifdef WITH_GZIP    soap->error = soap->fposthdr(soap, "Content-Encoding", "gzip");#else    soap->error = soap->fposthdr(soap, "Content-Encoding", "deflate");#endif#endif  if ((soap->omode & SOAP_IO) == SOAP_IO_CHUNK)    soap->error = soap->fposthdr(soap, "Transfer-Encoding", "chunked");  else if (count > 0)  { sprintf(soap->tmpbuf, "%lu", (unsigned long)count);    soap->error = soap->fposthdr(soap, "Content-Length", soap->tmpbuf);  }  if (soap->error)    return soap->error;  return soap->error = soap->fposthdr(soap, "Connection", soap->keep_alive ? "keep-alive" : "close");}