Index: netcam.c
===================================================================
--- netcam.c	(revisión: 172)
+++ netcam.c	(copia de trabajo)
@@ -261,7 +261,35 @@
 	}
 }
 
+
 /**
+ * netcam_check_content_auth
+ *
+ *    Analyse an HTTP-header line to see if it is a Content-auth
+ *
+ * Parameters:
+ *
+ *      header          Pointer to a string containing the header line
+ *
+ * Returns:
+ *      -1              Not a Content-auth line
+ *      1               auth code line
+ *
+ */
+static int netcam_check_content_auth(char *header)
+{
+   char *content_auth = NULL;
+
+   if (!header_process(header, "Content-Auth", http_process_type, &content_auth))
+      return -1;
+
+   if (content_auth)
+      free(content_auth);
+
+   return 1;
+}
+
+/**
  * netcam_check_content_length
  *
  * 	Analyse an HTTP-header line to see if it is a Content-length
@@ -409,6 +437,11 @@
 			netcam->receiving->content_length = (int) retval;
 		}
 
+		if ((retval = (int) netcam_check_content_auth(header)) > 0) {
+			break;
+		}
+
+
 		free(header);
 	}
 
