Back to index

courier  0.68.2
cgiredirect.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1998 - 2007 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 /*
00007 */
00008 #include      "cgi.h"
00009 #include      <stdio.h>
00010 
00011 void cgiredirect(const char *buf)
00012 {
00013        if (cgihasversion(1,1))
00014               printf("Status: 303 Moved\n");
00015                             /* Alas, Communicator can't handle it */
00016        cginocache();
00017        printf("Location: %s\n\n", buf);
00018        printf("URI: %s\n", buf);
00019 }