For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Freelance > March 2004 > returning rtf









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author returning rtf
Antonio

2004-03-27, 12:02 am

I'm sorry for the triviality of the problem: I'm new both to perl and to
cgi.

I need to return an rtf document; I've it on a file, so there are many ways
to do it; but first I tried the simplest thing:


open RTF, ...;
print "Content-type: application/rtf\n\n";
while (<RTF> ) {
print;
}

but the browser (IE6.0) asked me for downloading ... the .pl program itself.
I'm using an apache server and ActivePerl under W98; my mime.types seem to
be correct. Can anyone show me where I go wrong?

Thanks,
Antonio.


Tintin

2004-03-27, 12:02 am


"Antonio" <ng72aV31bo46@fastwebnet.it> wrote in message
news:GdH8c.10261$jY1.6072@tornado.fastwebnet.it...
> I'm sorry for the triviality of the problem: I'm new both to perl and to
> cgi.


and to the concept of what "freelance" is.

>
> I need to return an rtf document; I've it on a file, so there are many

ways
> to do it; but first I tried the simplest thing:
>
>
> open RTF, ...;
> print "Content-type: application/rtf\n\n";
> while (<RTF> ) {
> print;
> }
>
> but the browser (IE6.0) asked me for downloading ... the .pl program

itself.
> I'm using an apache server and ActivePerl under W98; my mime.types seem to
> be correct. Can anyone show me where I go wrong?


Open the ActiveState Perl documention and go down to "ActivePerl FAQ"-"Web
Server Config"

Any more questions all we'll have to charge you.


Vorxion

2004-03-27, 12:02 am

In article <c40tm8$2d303j$1@ID-172104.news.uni-berlin.de>, Tintin wrote:
>
>"Antonio" <ng72aV31bo46@fastwebnet.it> wrote in message
>news:GdH8c.10261$jY1.6072@tornado.fastwebnet.it...
>
>and to the concept of what "freelance" is.


No doubt.

>Any more questions all we'll have to charge you.


I think we should have charged anyway. Not RTFM'ing: $275.

--
Vorxion - Member of The Vortexa Elite
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com