Home | History | Annotate | Download | only in src

Lines Matching defs:blen

1345     int blen, ret;
1382 blen = strlen(ctxt->hostname) * 2 + 16;
1386 blen = strlen(ctxt->hostname);
1399 blen += 36;
1402 blen += strlen(headers) + 2;
1405 blen += strlen(*contentType) + 16;
1408 blen += strlen(ctxt->query) + 1;
1409 blen += strlen(method) + strlen(ctxt->path) + 24;
1412 blen += 23;
1417 blen += 12;
1419 blen += 6;
1421 bp = (char*)xmlMallocAtomic(blen);
1432 p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s",
1437 p += snprintf( p, blen - (p - bp), "%s http://%s%s", method,
1441 p += snprintf( p, blen - (p - bp), "%s %s", method, ctxt->path);
1444 p += snprintf( p, blen - (p - bp), "?%s", ctxt->query);
1447 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s\r\n",
1450 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s:%d\r\n",
1455 p += snprintf(p, blen - (p - bp), "Accept-Encoding: gzip\r\n");
1459 p += snprintf(p, blen - (p - bp), "Content-Type: %s\r\n", *contentType);
1462 p += snprintf( p, blen - (p - bp), "%s", headers );
1465 snprintf(p, blen - (p - bp), "Content-Length: %d\r\n\r\n", ilen );
1467 snprintf(p, blen - (p - bp), "\r\n");
1472 if ((blen -= strlen(bp)+1) < 0)
1474 "ERROR: overflowed buffer by %d bytes\n", -blen);
1478 blen = strlen( ctxt->out );
1480 xmt_bytes = xmlNanoHTTPSend(ctxt, ctxt->out, blen );
1481 if ( xmt_bytes != blen )
1484 xmt_bytes, blen,
1488 xmlNanoHTTPSend(ctxt, ctxt->out, blen );