diff options
author | swhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2004-04-13 13:42:54 +0000 |
---|---|---|
committer | swhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2004-04-13 13:42:54 +0000 |
commit | 310f5363afe8ed31b6381ff002991d5c7cfa6d96 (patch) | |
tree | 8915b41c6318d49e0577f63e4cce0cad2cdcdaad /src/Redirect.c | |
parent | 373f2b276ec87294bb96e5b148972303308f7763 (diff) |
Made HTTPD to correctly describe interface by INCLUDE HEADER mechanism.
Changed internal names of
http_Auth.h
http_Cookies.h
http_Steer.h
http_Content.h
so that HTTPD thorn developers will be required to use this interface,
rather than incorrectly explicitly including the source header files.
* Protected SString against C++ name mangling
* Gave exported functions the HTTP_ prefix
* Wrote doc/Content.h
* Fixed bug that disabled some steering functionality
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@192 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Redirect.c')
-rw-r--r-- | src/Redirect.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/Redirect.c b/src/Redirect.c index 24f9729..5502e5c 100644 --- a/src/Redirect.c +++ b/src/Redirect.c @@ -22,11 +22,10 @@ #include "httpd.h" -#include "http_Request.h" -#include "http_Content.h" +#include "httpRequest.h" +#include "Content.h" -#include "http_Redirect.h" -#include "http_SString.h" +#include "Redirect.h" #include "SString_Namespace.h" static const char *rcsid = "$Header$"; @@ -292,28 +291,28 @@ static int RedirectPage(const cGH *cctkGH, httpRequest *request, void *data) /* avoid compiler warning about unused parameter */ data = data; - SendHTTP_OK_Header(request); + HTTP_Send_OK_Header(request); /* Start the page */ SetToCString(message,"<html><head><title>Server Redirect</title>\n"); /* Write out the main header part */ - Send_HTTP_String(request, message); + HTTP_SendString(request, message); SetToCString(message,"<meta http-equiv=\"refresh\" content=\"1; URL=http://"); ConcatCString(message,HTTP_Master()); ConcatCString(message, ":"); ConcatDecimal(message,(unsigned int) HTTP_Port()); ConcatCString(message, "\" />\n</head>\n<body>\n"); - Send_HTTP_String(request,message); + HTTP_SendString(request,message); /* ********** Server Redirect To Master ************* */ SetToCString(message,"<h1>Redirect to master host="); ConcatCString(message,HTTP_Master()); ConcatCString(message, ":"); ConcatDecimal(message,(unsigned int) HTTP_Port()); ConcatCString(message, "</h1>\n"); - Send_HTTP_String(request,message); + HTTP_SendString(request,message); - SetHTML_ContentFooter(cctkGH, 0, message); - retval = Send_HTTP_String(request, message); + HTTP_SetContentFooterString(cctkGH, 0, message); + retval = HTTP_SendString(request, message); String_Delete( message ); return retval; |