OpenMarket Error Messages

David Moulton (
Mon, 19 May 1997 14:38:54 -0600

Message-Id: <>
Date: Mon, 19 May 1997 14:38:54 -0600
From: David Moulton <>
Subject: OpenMarket Error Messages

I have been unable to get the proper "error-unauthorized" message to come up
when a user fails to authenticate him/herself to my site. I want the message
to come up when the user has clicked cancel in the password box. Instead, I
get a "Document Contains No Data" message. I suspect I am doing something
wrong in my authorizer. Here is the  relevant code: 

if (remoteUser && remotePassword && contactId) {          FCGX_FPrintF(out, 
           "Status: 200 OK\r\n"             "Variable-CONTACT_ID: %s\r\n"   
         "\r\n",             contactId);       }       else {         
FCGX_FPrintF(out,             "Status: 401 Unauthorized\r\n"            
"WWW-Authenticate: Basic realm=\"Novell Secure Site\"\r\n"            
"\r\n");       } 

Any ideas? I'm using Openmarket 2.1. 

Dave Moulton