/*
- * "$Id: http.c,v 1.82.2.12 2002/05/09 02:22:06 mike Exp $"
+ * "$Id: http.c,v 1.82.2.13 2002/05/09 03:44:17 mike Exp $"
*
* HTTP routines for the Common UNIX Printing System (CUPS).
*
"Content-Range",
"Content-Type",
"Content-Version",
- "Cookie",
"Date",
- "Expect",
"Host",
"If-Modified-Since",
"If-Unmodified-since",
"Range",
"Referer",
"Retry-After",
- "Set-Cookie",
"Transfer-Encoding",
"Upgrade",
"User-Agent",
/*
- * End of "$Id: http.c,v 1.82.2.12 2002/05/09 02:22:06 mike Exp $".
+ * End of "$Id: http.c,v 1.82.2.13 2002/05/09 03:44:17 mike Exp $".
*/
/*
- * "$Id: http.h,v 1.33.2.10 2002/05/09 02:22:07 mike Exp $"
+ * "$Id: http.h,v 1.33.2.11 2002/05/09 03:44:17 mike Exp $"
*
* Hyper-Text Transport Protocol definitions for the Common UNIX Printing
* System (CUPS).
HTTP_FIELD_CONTENT_RANGE,
HTTP_FIELD_CONTENT_TYPE,
HTTP_FIELD_CONTENT_VERSION,
- HTTP_FIELD_COOKIE,
HTTP_FIELD_DATE,
- HTTP_FIELD_EXPECT,
HTTP_FIELD_HOST,
HTTP_FIELD_IF_MODIFIED_SINCE,
HTTP_FIELD_IF_UNMODIFIED_SINCE,
HTTP_FIELD_RANGE,
HTTP_FIELD_REFERER,
HTTP_FIELD_RETRY_AFTER,
- HTTP_FIELD_SET_COOKIE,
HTTP_FIELD_TRANSFER_ENCODING,
HTTP_FIELD_UPGRADE,
HTTP_FIELD_USER_AGENT,
http_status_t status; /* Status of last request */
http_version_t version; /* Protocol version */
http_keepalive_t keep_alive; /* Keep-alive supported? */
- http_addr_t hostaddr; /* Host address and port */
+ struct sockaddr_in oldaddr; /* Address of connected host */
char hostname[HTTP_MAX_HOST],
/* Name of connected host */
fields[HTTP_FIELD_MAX][HTTP_MAX_VALUE];
int nonce_count; /* Nonce count */
void *tls; /* TLS state information */
http_encryption_t encryption; /* Encryption requirements */
+ http_addr_t hostaddr; /* Host address and port */
+ http_status_t expect; /* Expect: header */
+ char cookie[HTTP_MAX_VALUE * 2];
+ /* Cookie value(s) */
} http_t;
#endif /* !_IPP_HTTP_H_ */
/*
- * End of "$Id: http.h,v 1.33.2.10 2002/05/09 02:22:07 mike Exp $".
+ * End of "$Id: http.h,v 1.33.2.11 2002/05/09 03:44:17 mike Exp $".
*/