Home | History | Annotate | Download | only in libxml2

Lines Matching refs:blen

1343     int blen;
1381 blen = strlen(ctxt->hostname) * 2 + 16;
1385 blen = strlen(ctxt->hostname);
1398 blen += 36;
1401 blen += strlen(headers) + 2;
1404 blen += strlen(*contentType) + 16;
1407 blen += strlen(ctxt->query) + 1;
1408 blen += strlen(method) + strlen(ctxt->path) + 24;
1411 blen += 23;
1416 blen += 12;
1418 blen += 6;
1420 bp = (char*)xmlMallocAtomic(blen);
1431 p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s",
1436 p += snprintf( p, blen - (p - bp), "%s http://%s%s", method,
1440 p += snprintf( p, blen - (p - bp), "%s %s", method, ctxt->path);
1443 p += snprintf( p, blen - (p - bp), "?%s", ctxt->query);
1446 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s\r\n",
1449 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s:%d\r\n",
1454 p += snprintf(p, blen - (p - bp), "Accept-Encoding: gzip\r\n");
1458 p += snprintf(p, blen - (p - bp), "Content-Type: %s\r\n", *contentType);
1461 p += snprintf( p, blen - (p - bp), "%s", headers );
1464 snprintf(p, blen - (p - bp), "Content-Length: %d\r\n\r\n", ilen );
1466 snprintf(p, blen - (p - bp), "\r\n");
1471 if ((blen -= strlen(bp)+1) < 0)
1473 "ERROR: overflowed buffer by %d bytes\n", -blen);
1477 blen = strlen( ctxt->out );
1479 xmt_bytes = xmlNanoHTTPSend(ctxt, ctxt->out, blen );
1480 if ( xmt_bytes != blen )
1483 xmt_bytes, blen,
1487 xmlNanoHTTPSend(ctxt, ctxt->out, blen );