/* * $LynxId: HTTP.h,v 1.14 2025/10/31 08:13:07 tom Exp $ * * /Net/dxcern/userd/timbl/hypertext/WWW/Library/Implementation/HTTP.html * HYPERTEXT TRANSFER PROTOCOL */ #ifndef HTTP_H #define HTTP_H #include #ifdef __cplusplus extern "C" { #endif #ifdef GLOBALREF_IS_MACRO extern GLOBALREF (HTProtocol, HTTP); extern GLOBALREF (HTProtocol, HTTPS); #else GLOBALREF HTProtocol HTTP; GLOBALREF HTProtocol HTTPS; #endif /* GLOBALREF_IS_MACRO */ #define URL_GET_METHOD 1 #define URL_POST_METHOD 2 #define URL_MAIL_METHOD 3 #define UrlMethod(n) \ ((n) == URL_GET_METHOD ? "GET" \ : (n) == URL_POST_METHOD ? "POST" \ : (n) == URL_MAIL_METHOD ? "MAIL" : "?") /* * Special value for 'reloading' used to tell HTLoadDocument() that the * user asked for a reload, versus Lynx doing a reload for other reasons. */ #define REAL_RELOAD (TRUE + 1) extern int ws_read_per_sec; extern BOOLEAN reloading; extern char *redirecting_url; extern BOOL permanent_redirection; extern BOOL redirect_post_content; #ifdef __cplusplus } #endif #endif /* HTTP_H */