source: hybrid/branches/releng-11/nanobsd/files/usr/local/bin/http302@ 13775

Last change on this file since 13775 was 13775, checked in by rick, 8 years ago

Avoid an extra redirect, page is served as index.cgi.

  • Property svn:executable set to *
File size: 368 bytes
Line 
1#!/bin/sh
2#
3# Only purpose is to send somebody to the Captive Portal
4#
5URL=${URL:-http://welcome.wleiden.net/portal/}
6
7# Send information to client
8echo -e "HTTP/1.1 302 OK\r"
9echo -e "Location: $URL\r"
10echo -e "Content-Type: text/html\r"
11echo -e "Cache-Control: no-cache, no-store, must-revalidate\r"
12echo -e "Pragma: no-cache\r"
13echo -e "Expires: 0\r"
14echo -e "\r"
15
Note: See TracBrowser for help on using the repository browser.