i encountered a strange behavior in contrast to busybox-httpd. for our splash we have a custom-shell-script, which does the magic, but with uhttpd, it does not work:
bast...@box:~$ wget -SO - "http://busybox.lan/cgi-bin-redirect" --2011-01-09 17:35:20-- http://192.168.100.23/ Connecting to 192.168.100.23:80... connected. HTTP request sent, awaiting response... HTTP/1.1 302 Temporary Redirect Connection: close Cache-Control: no-cache Content-Type: text/html Location: http://192.168.100.23/cgi-bin-welcome?REDIRECTED=1 Location: http://192.168.100.23/cgi-bin-welcome?REDIRECTED=1 [following] here the same while fetching the uhttpd-host: bast...@box:~$ wget -SO - "http://uhttpd.lan/cgi-bin-redirect" --2011-01-09 17:42:31-- http://192.168.100.26/ Connecting to 192.168.100.26:80... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Connection: close Content-Type: text/plain Length: unspecified [text/plain] Saving to: `STDOUT' [...here comes html-code with a redirection note, which cannot be rendered, because it's delivered as plaintext ...] the output in shell is on both boxes the same: r...@openwrt: _http redirect 302 http://1.1.1.1 HTTP/1.1 302 Temporary Redirect Connection: close Cache-Control: no-cache Content-Type: text/html Location: http://1.1.1.1 <HTML><HEAD> <TITLE>302 Temporary Redirect</TITLE> <META HTTP-EQUIV="cache-control" CONTENT="no-cache"> <META HTTP-EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="expires" CONTENT="0"> <META HTTP-EQUIV="refresh" CONTENT="0; URL=http://1.1.1.1"> </HEAD><BODY> <H1>302 - Temporary Redirect</H1> <P>click <A HREF="http://1.1.1.1">here</A> if you are not redirected automatically.</P> </BODY></HTML> Any ideas how to fix that? How to enforce the MIME-Type of specific files? bye, Bastian. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel