--- gtkcupsutils.c.orig	2007-06-27 12:33:13.000000000 -0700
+++ gtkcupsutils.c	2007-06-27 12:33:49.000000000 -0700
@@ -844,6 +844,8 @@ _post_check (GtkCupsRequest *request)
 #if HAVE_SSL
   else if (http_status == HTTP_UPGRADE_REQUIRED)
     {
+      cupsSetEncryption (HTTP_ENCRYPT_REQUIRED);
+      request->state = GTK_CUPS_POST_CONNECT;
       /* Flush any error message... */
       httpFlush (request->http);
 
@@ -1032,6 +1034,8 @@ _get_check (GtkCupsRequest *request)
 #if HAVE_SSL
   else if (http_status == HTTP_UPGRADE_REQUIRED)
     {
+      cupsSetEncryption (HTTP_ENCRYPT_REQUIRED);
+      request->state = GTK_CUPS_GET_CONNECT;
       /* Flush any error message... */
       httpFlush (request->http);
 
