Added LIMIT_CONNECT action and string
authoroes <oes@users.sourceforge.net>
Wed, 10 Oct 2001 16:45:15 +0000 (16:45 +0000)
committeroes <oes@users.sourceforge.net>
Wed, 10 Oct 2001 16:45:15 +0000 (16:45 +0000)
Fixed HTTP message line termination
Added CFORBIDDEN HTTP message

project.h

index 85e0b89..25b68dd 100644 (file)
--- a/project.h
+++ b/project.h
@@ -1,6 +1,6 @@
 #ifndef PROJECT_H_INCLUDED
 #define PROJECT_H_INCLUDED
-#define PROJECT_H_VERSION "$Id: project.h,v 1.34 2001/10/07 15:45:25 oes Exp $"
+#define PROJECT_H_VERSION "$Id: project.h,v 1.35 2001/10/07 18:06:43 oes Exp $"
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/project.h,v $
@@ -36,6 +36,9 @@
  *
  * Revisions   :
  *    $Log: project.h,v $
+ *    Revision 1.35  2001/10/07 18:06:43  oes
+ *    Added status member to struct http_request
+ *
  *    Revision 1.34  2001/10/07 15:45:25  oes
  *    Added url member to struct http_request and commented all
  *      members
@@ -480,15 +483,15 @@ struct iob
 #define ACTION_NO_COOKIE_SET   0x2000U
 #define ACTION_NO_POPUPS       0x4000U
 #define ACTION_VANILLA_WAFER   0x8000U
-
+#define ACTION_LIMIT_CONNECT   0x010000U
 
 #define ACTION_STRING_DEANIMATE     0
 #define ACTION_STRING_FROM          1
 #define ACTION_STRING_IMAGE_BLOCKER 2
 #define ACTION_STRING_REFERER       3
 #define ACTION_STRING_USER_AGENT    4
-#define ACTION_STRING_COUNT         5
-
+#define ACTION_STRING_LIMIT_CONNECT 5
+#define ACTION_STRING_COUNT         6
 
 #define ACTION_MULTI_ADD_HEADER     0
 #define ACTION_MULTI_WAFER          1
@@ -865,10 +868,13 @@ struct configuration_spec
 /* HTTP snipplets */
 static const char CSUCCEED[] =
    "HTTP/1.0 200 Connection established\n"
-   "Proxy-Agent: IJ/" VERSION "\n\n";
+   "Proxy-Agent: IJ/" VERSION "\r\n\r\n";
 
 static const char CHEADER[] =
-   "HTTP/1.0 400 Invalid header received from browser\n\n";
+   "HTTP/1.0 400 Invalid header received from browser\r\n\r\n";
+
+static const char CFORBIDDEN[] =
+   "HTTP/1.0 403 Connection not allowable\r\nX-Hint: If you read this message interactively, then you know why this happens ,-)\r\n\r\n";
 
 #ifdef __cplusplus
 } /* extern "C" */