/*
- * "$Id: getputfile.c 5147 2006-02-22 16:37:44Z mike $"
+ * "$Id: getputfile.c 5235 2006-03-06 13:02:23Z mike $"
*
* Get/put file functions for the Common UNIX Printing System (CUPS).
*
int bytes; /* Number of bytes read */
char buffer[8192]; /* Buffer for file */
http_status_t status; /* HTTP status from server */
+ char if_modified_since[HTTP_MAX_VALUE];
+ /* If-Modified-Since header */
/*
* Then send GET requests to the HTTP server...
*/
+ strlcpy(if_modified_since, httpGetField(http, HTTP_FIELD_IF_MODIFIED_SINCE),
+ sizeof(if_modified_since));
+
do
{
httpClearFields(http);
httpSetField(http, HTTP_FIELD_AUTHORIZATION, http->authstring);
+ httpSetField(http, HTTP_FIELD_IF_MODIFIED_SINCE, if_modified_since);
if (httpGet(http, resource))
{
/*
- * End of "$Id: getputfile.c 5147 2006-02-22 16:37:44Z mike $".
+ * End of "$Id: getputfile.c 5235 2006-03-06 13:02:23Z mike $".
*/