[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Probably a waste of your time...



unless your &ReadParse is also printing a content-type header, that is
the problem, also, it is obvious you are trying to setup a redirect
cgi...you should note that you also need the URI: header and the
Location: header...since the Location: header is outdated....read the
specs...www.w3.org...

-jon

> #!/usr/bin/Perl
>
>
> require "cgi-lib.pl";
>
> %try = (
> "index", "Location: http://www.some/url.html\n\n", "hcity",
> "Location: http://www.some/other_url.html\n\n", "sunbiz", "Location:
> http://www.some/other/other_url.html\n\n"
> );
>
> MAIN:
> {
>
> &ReadParse;
>
> print "$try{$in{'selecturl'}}"
>
> }
>
>
>
>


Jon (no h) S. Stevens        yanni@clearink.com
ClearInk WebMagus      http://www.clearink.com/
finger pgp@sparc.clearink.com for pgp pub key
My apologies for the loss of bandwidth. :-)