- To: Saliya Wimalaratne <saliya@xxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] x-internet-signup, apache, and dreamcast...
- From: Rick Welykochy <rick@xxxxxxxxxxxxx>
- Date: Mon Jul 10 07:47:38 2000
- Cc: slug@xxxxxxxxxxx
- Organization: Praxis Services Pty Limited
Saliya Wimalaratne wrote:
> I'm trying to configure an apache server to return a file
> of type 'x-internet-signup' using the 'cgi-script' handler
> and Perl.
>
> This is to allow Dreamcast signups via our services.
>
> Has anyone does this ?
You need to specify the content-type in the HTTP response
header. Using CGI.pm, this is quite easy:
my $cgi = new CGI;
:
:
# prepare your content in $content
:
print $cgi->header(-type=>'application/x-internet-signup');
print $content;
--
Rick Welykochy || Praxis Services Pty Limited