--- cups/http-orig.c    2005-12-28 18:52:57.000000000 +0100
+++ cups/http.c 2005-12-28 19:01:53.000000000 +0100
@@ -1874,6 +1874,12 @@
       }
     }
 
+  if (httpPrintf(http, "User-Agent: CUPS/%d.%d.%d\r\n", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR, CUPS_VERSION_PATCH) < 1)
+  {
+    http->status = HTTP_ERROR;
+    return (-1);
+  }
+
   if (http->cookie)
     if (httpPrintf(http, "Cookie: $Version=0; %s\r\n", http->cookie) < 1)
     {
