• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:contentType

150     char *contentType;	/* the MIME type for the input */
153 char *encoding; /* encoding extracted from the contentType */
154 char *mimeType; /* Mime-Type extracted from the contentType */
415 if (ctxt->contentType != NULL) xmlFree(ctxt->contentType);
693 if (ctxt->contentType != NULL)
694 xmlFree(ctxt->contentType);
695 ctxt->contentType = xmlMemStrdup(cur);
704 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset=");
718 if (ctxt->contentType != NULL) return;
720 ctxt->contentType = xmlMemStrdup(cur);
729 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset=");
1138 * @contentType: if available the Content-Type information will be
1145 * The contentType, if provided must be freed by the caller
1149 xmlNanoHTTPOpen(const char *URL, char **contentType) {
1150 if (contentType != NULL) *contentType = NULL;
1151 return(xmlNanoHTTPMethod(URL, NULL, NULL, contentType, NULL, 0));
1157 * @contentType: if available the Content-Type information will be
1165 * The contentType, if provided must be freed by the caller
1169 xmlNanoHTTPOpenRedir(const char *URL, char **contentType, char **redir) {
1170 if (contentType != NULL) *contentType = NULL;
1172 return(xmlNanoHTTPMethodRedir(URL, NULL, NULL, contentType, redir, NULL,0));
1256 * @contentType: the Content-Type information IN and OUT
1266 * The contentType, or redir, if provided must be freed by the caller
1271 char **contentType, char **redir,
1334 if (contentType && *contentType)
1336 blen += strlen(*contentType) + 16;
1389 if (contentType != NULL && *contentType)
1390 p += snprintf(p, blen - (p - bp), "Content-Type: %s\r\n", *contentType);
1479 if (contentType != NULL) {
1480 if (ctxt->contentType != NULL)
1481 *contentType = xmlMemStrdup(ctxt->contentType);
1483 *contentType = NULL;
1496 if (ctxt->contentType != NULL)
1499 ctxt->returnValue, ctxt->contentType);
1514 * @contentType: the Content-Type information IN and OUT
1523 * The contentType, if provided must be freed by the caller
1528 char **contentType, const char *headers, int ilen) {
1529 return(xmlNanoHTTPMethodRedir(URL, method, input, contentType,
1537 * @contentType: if available the Content-Type information will be
1543 * Returns -1 in case of failure, 0 incase of success. The contentType,
1547 xmlNanoHTTPFetch(const char *URL, const char *filename, char **contentType) {
1554 ctxt = xmlNanoHTTPOpen(URL, contentType);
1563 if ((contentType != NULL) && (*contentType != NULL)) {
1564 xmlFree(*contentType);
1565 *contentType = NULL;
1778 char *contentType = NULL;
1782 xmlNanoHTTPFetch(argv[1], argv[2], &contentType);
1784 xmlNanoHTTPFetch(argv[1], "-", &contentType);
1785 if (contentType != NULL) xmlFree(contentType);