Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] x-internet-signup, apache, and dreamcast...


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