Lines Matching defs:blen
1273 int blen, ret;
1311 blen = strlen(ctxt->hostname) * 2 + 16;
1315 blen = strlen(ctxt->hostname);
1328 blen += 36;
1331 blen += strlen(headers) + 2;
1333 blen += strlen(*contentType) + 16;
1335 blen += strlen(ctxt->query) + 1;
1336 blen += strlen(method) + strlen(ctxt->path) + 24;
1338 blen += 23;
1340 bp = (char*)xmlMallocAtomic(blen);
1351 p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s",
1356 p += snprintf( p, blen - (p - bp), "%s http://%s%s", method,
1360 p += snprintf( p, blen - (p - bp), "%s %s", method, ctxt->path);
1363 p += snprintf( p, blen - (p - bp), "?%s", ctxt->query);
1365 p += snprintf( p, blen - (p - bp), " HTTP/1.0\r\nHost: %s\r\n",
1369 p += snprintf(p, blen - (p - bp), "Accept-Encoding: gzip\r\n");
1373 p += snprintf(p, blen - (p - bp), "Content-Type: %s\r\n", *contentType);
1376 p += snprintf( p, blen - (p - bp), "%s", headers );
1379 snprintf(p, blen - (p - bp), "Content-Length: %d\r\n\r\n", ilen );
1381 snprintf(p, blen - (p - bp), "\r\n");
1386 if ((blen -= strlen(bp)+1) < 0)
1388 "ERROR: overflowed buffer by %d bytes\n", -blen);
1392 blen = strlen( ctxt->out );
1394 xmt_bytes = xmlNanoHTTPSend(ctxt, ctxt->out, blen );
1395 if ( xmt_bytes != blen )
1398 xmt_bytes, blen,
1402 xmlNanoHTTPSend(ctxt, ctxt->out, blen );