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

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

No caching of this portal redirect _ever_.

  • Property svn:executable set to *
File size: 367 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.