Re: HTTP headers

2003-01-16 Thread Philip Pawley
Thanks William, The server is Apache. I was calling the script using an SSI in an html page: I just tried calling the script directly with the browser and that did work. I suppose this means that you can't alter the headers using a script called with a virtual include. Is that right? Actually

Re: HTTP headers

2003-01-16 Thread William McKee
Hi Philip, I looked at the script. How are you running it? From the command line or from a web server? It works fine on the comand line and from the server for me. What server are you using to display it? I'm using Apache. If you are running it from the server you may need to include -nph => 1 t

Re: HTTP headers

2003-01-15 Thread Octavian Rasnita
You can use the CGI perl module to print headers, or you can print them directly like: print "Content-type: text/plain\n\n"; Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Philip Pawley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: T

Re: HTTP headers

2003-01-14 Thread William McKee
On Tue, Jan 14, 2003 at 09:05:42PM +, Philip Pawley wrote: > Can I add an HTTP header to my web-site's server's response with perl? > (It isn't my server). The server is running perl 5.6.1. If I can get > it to work, I want to start using "Expires:" headers. Try using CGI.pm to alter the heade

Re: HTTP headers

2002-07-30 Thread Wiggins d'Anconia
My suspicion is that IE is looking ahead of time at the extension of the file requested and doing some guess work (*I could be wrong*) but in this case your only real option would be to rename your CGI script, which is a beautiful thing about the web/unix/etc, you can do this! You might try chang

RE: HTTP headers

2002-07-30 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 1:13 PM > To: [EMAIL PROTECTED] > Subject: HTTP headers > > > Hi all, > > I want to print a zip file to the browser but I want to make > the browser > think that it gets the zip file

Re: http headers

2002-04-26 Thread Felix Geerinckx
on Fri, 26 Apr 2002 04:00:06 GMT, [EMAIL PROTECTED] (Conan chai) wrote: > more details on what i'm doing: > i'm doing a simple proxy server. Randal Schwartz has done a proxy server in one of his Webtechniques columns. Maybe you can get some ideas from it. See

Re: http headers

2002-04-25 Thread Conan Chai
hi again, i was actually looking for modules that split the following into name/value pairs. the following is a typical request header from a web browser(eg.IE/netscape). more details on what i'm doing: i'm doing a simple proxy server. the web browser sends the request, the server uses sysread()

Re: http headers

2002-04-24 Thread David vd Geer Inhuur tbv IPlib
Hi There, Here is another one I always use : sub parse_form { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); if (length($buffer) < 5) { $head = $ENV{QUERY_STRING}; } @pairs = split(/\?/, $head); # split vars using ? as delimitor foreach $pair(@pairs) { ($name

Re: http headers

2002-04-24 Thread John Brooking
Most recent editions of Perl come with the CGI module, which is what you want. Type "perldoc CGI" at your friendly neighborhood command prompt. The O'Reilly book "CGI Programming with Perl" has a good overview, as do no doubt countless other books. The basic steps are: use CGI; my $cgi = new CGI

RE: http headers

2002-04-23 Thread Timothy Johnson
I don't use Perl for web stuff myself, but just from hearing other people talk, you might want to look into the LWP modules and CGI. -Original Message- From: Conan Chai To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 4/23/02 9:07 PM Subject: http headers hi, are there any perl modules

Re: HTTP headers/Mime types

2001-06-26 Thread Hasanuddin Tamir
On Tue, 26 Jun 2001, Gary Stainburn <[EMAIL PROTECTED]> wrote, > Hi all, > > I've written a perl script that creates PDF files containing our sales > invoices and it works fine writing the PDF's to disk. (Actually it creates a > postscript file and runs ps2pdf). > > I now want to embed this insid