/*
- * "$Id: http.c,v 1.37 1999/06/18 18:36:08 mike Exp $"
+ * "$Id: http.c,v 1.38 1999/07/09 13:08:37 mike Exp $"
*
* HTTP routines for the Common UNIX Printing System (CUPS) scheduler.
*
static char *http_fields[] =
{
- "Accept",
- "Accept-Charset",
- "Accept-Encoding",
"Accept-Language",
"Accept-Ranges",
- "Age",
- "Allow",
- "Alternates",
"Authorization",
- "Cache-Control",
"Connection",
- "Content-Base",
"Content-Encoding",
"Content-Language",
"Content-Length",
"Content-Type",
"Content-Version",
"Date",
- "Derived-From",
- "Etag",
- "Expires",
- "From",
"Host",
- "If-Match",
"If-Modified-Since",
- "If-None-Match",
- "If-Range",
"If-Unmodified-since",
"Keep-Alive",
"Last-Modified",
"Link",
"Location",
- "Max-Forwards",
- "Message-Id",
- "MIME-Version",
- "Pragma",
- "Proxy-Authenticate",
- "Proxy-Authorization",
- "Public",
"Range",
"Referer",
"Retry-After",
- "Server",
"Transfer-Encoding",
"Upgrade",
- "URI",
"User-Agent",
- "Vary",
- "Via",
- "Warning",
"WWW-Authenticate"
};
static char *days[7] =
*port = 443;
else if (strcasecmp(method, "ipp") == 0) /* Not registered yet... */
*port = ippPort();
+ else if (strcasecmp(method, "socket") == 0) /* Not registered yet... */
+ *port = 9100;
else
*port = 0;
}
/*
- * End of "$Id: http.c,v 1.37 1999/06/18 18:36:08 mike Exp $".
+ * End of "$Id: http.c,v 1.38 1999/07/09 13:08:37 mike Exp $".
*/
/*
- * "$Id: http.h,v 1.19 1999/06/18 18:36:09 mike Exp $"
+ * "$Id: http.h,v 1.20 1999/07/09 13:08:38 mike Exp $"
*
* Hyper-Text Transport Protocol definitions for the Common UNIX Printing
* System (CUPS).
# define HTTP_MAX_URI 1024 /* Max length of URI string */
# define HTTP_MAX_HOST 256 /* Max length of hostname string */
-# define HTTP_MAX_BUFFER 8192 /* Max length of data buffer */
+# define HTTP_MAX_BUFFER 2048 /* Max length of data buffer */
# define HTTP_MAX_VALUE 256 /* Max header field value length */
typedef enum
{
HTTP_FIELD_UNKNOWN = -1,
- HTTP_FIELD_ACCEPT = 0,
- HTTP_FIELD_ACCEPT_CHARSET,
- HTTP_FIELD_ACCEPT_ENCODING,
HTTP_FIELD_ACCEPT_LANGUAGE,
HTTP_FIELD_ACCEPT_RANGES,
- HTTP_FIELD_AGE,
- HTTP_FIELD_ALLOW,
- HTTP_FIELD_ALTERNATES,
HTTP_FIELD_AUTHORIZATION,
- HTTP_FIELD_CACHE_CONTROL,
HTTP_FIELD_CONNECTION,
- HTTP_FIELD_CONTENT_BASE,
HTTP_FIELD_CONTENT_ENCODING,
HTTP_FIELD_CONTENT_LANGUAGE,
HTTP_FIELD_CONTENT_LENGTH,
HTTP_FIELD_CONTENT_TYPE,
HTTP_FIELD_CONTENT_VERSION,
HTTP_FIELD_DATE,
- HTTP_FIELD_DERIVED_FROM,
- HTTP_FIELD_ETAG,
- HTTP_FIELD_EXPIRES,
- HTTP_FIELD_FROM,
HTTP_FIELD_HOST,
- HTTP_FIELD_IF_MATCH,
HTTP_FIELD_IF_MODIFIED_SINCE,
- HTTP_FIELD_IF_NONE_MATCH,
- HTTP_FIELD_IF_RANGE,
HTTP_FIELD_IF_UNMODIFIED_SINCE,
HTTP_FIELD_KEEP_ALIVE,
HTTP_FIELD_LAST_MODIFIED,
HTTP_FIELD_LINK,
HTTP_FIELD_LOCATION,
- HTTP_FIELD_MAX_FORWARDS,
- HTTP_FIELD_MESSAGE_ID,
- HTTP_FIELD_MIME_VERSION,
- HTTP_FIELD_PRAGMA,
- HTTP_FIELD_PROXY_AUTHENTICATE,
- HTTP_FIELD_PROXY_AUTHORIZATION,
- HTTP_FIELD_PUBLIC,
HTTP_FIELD_RANGE,
HTTP_FIELD_REFERER,
HTTP_FIELD_RETRY_AFTER,
- HTTP_FIELD_SERVER,
HTTP_FIELD_TRANSFER_ENCODING,
HTTP_FIELD_UPGRADE,
- HTTP_FIELD_URI,
HTTP_FIELD_USER_AGENT,
- HTTP_FIELD_VARY,
- HTTP_FIELD_VIA,
- HTTP_FIELD_WARNING,
HTTP_FIELD_WWW_AUTHENTICATE,
HTTP_FIELD_MAX
} http_field_t;
#endif /* !_CUPS_HTTP_H_ */
/*
- * End of "$Id: http.h,v 1.19 1999/06/18 18:36:09 mike Exp $".
+ * End of "$Id: http.h,v 1.20 1999/07/09 13:08:38 mike Exp $".
*/