Home | History | Annotate | Download | only in libxml2

Lines Matching refs:blen

1361     int blen;
1399 blen = strlen(ctxt->hostname) * 2 + 16;
1403 blen = strlen(ctxt->hostname);
1416 blen += 36;
1419 blen += strlen(headers) + 2;
1422 blen += strlen(*contentType) + 16;
1425 blen += strlen(ctxt->query) + 1;
1426 blen += strlen(method) + strlen(ctxt->path) + 24;
1429 blen += 23;
1434 blen += 17;
1436 blen += 11;
1438 bp = (char*)xmlMallocAtomic(blen);
1449 p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s",
1454 p += snprintf( p, blen - (p - bp), "%s http://%s%s", method,
1458 p += snprintf( p, blen - (p - bp), "%s %s", method, ctxt->path);
1461 p += snprintf( p, blen - (p - bp), "?%s", ctxt->query);
1464 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s\r\n",
1467 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s:%d\r\n",
1472 p += snprintf(p, blen - (p - bp), "Accept-Encoding: gzip\r\n");
1476 p += snprintf(p, blen - (p - bp), "Content-Type: %s\r\n", *contentType);
1479 p += snprintf( p, blen - (p - bp), "%s", headers );
1482 snprintf(p, blen - (p - bp), "Content-Length: %d\r\n\r\n", ilen );
1484 snprintf(p, blen - (p - bp), "\r\n");
1489 if ((blen -= strlen(bp)+1) < 0)
1491 "ERROR: overflowed buffer by %d bytes\n", -blen);
1495 blen = strlen( ctxt->out );
1497 xmt_bytes = xmlNanoHTTPSend(ctxt, ctxt->out, blen );
1498 if ( xmt_bytes != blen )
1501 xmt_bytes, blen,
1505 xmlNanoHTTPSend(ctxt, ctxt->out, blen );