Home | History | Annotate | Download | only in libxml2

Lines Matching refs:blen

1353     int blen;
1391 blen = strlen(ctxt->hostname) * 2 + 16;
1395 blen = strlen(ctxt->hostname);
1408 blen += 36;
1411 blen += strlen(headers) + 2;
1414 blen += strlen(*contentType) + 16;
1417 blen += strlen(ctxt->query) + 1;
1418 blen += strlen(method) + strlen(ctxt->path) + 24;
1421 blen += 23;
1426 blen += 12;
1428 blen += 6;
1430 bp = (char*)xmlMallocAtomic(blen);
1441 p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s",
1446 p += snprintf( p, blen - (p - bp), "%s http://%s%s", method,
1450 p += snprintf( p, blen - (p - bp), "%s %s", method, ctxt->path);
1453 p += snprintf( p, blen - (p - bp), "?%s", ctxt->query);
1456 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s\r\n",
1459 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s:%d\r\n",
1464 p += snprintf(p, blen - (p - bp), "Accept-Encoding: gzip\r\n");
1468 p += snprintf(p, blen - (p - bp), "Content-Type: %s\r\n", *contentType);
1471 p += snprintf( p, blen - (p - bp), "%s", headers );
1474 snprintf(p, blen - (p - bp), "Content-Length: %d\r\n\r\n", ilen );
1476 snprintf(p, blen - (p - bp), "\r\n");
1481 if ((blen -= strlen(bp)+1) < 0)
1483 "ERROR: overflowed buffer by %d bytes\n", -blen);
1487 blen = strlen( ctxt->out );
1489 xmt_bytes = xmlNanoHTTPSend(ctxt, ctxt->out, blen );
1490 if ( xmt_bytes != blen )
1493 xmt_bytes, blen,
1497 xmlNanoHTTPSend(ctxt, ctxt->out, blen );