HTTP headers

2003-01-14 Thread Philip Pawley
I have a .pl script called by SSI from my html pages. The other functionality of the script works fine. I added these lines culled from the HTTP::Headers documentation (I added the "my"):- require HTTP::Headers; my $h = HTTP::Headers->new; $h->header('Content-Type' =&

http headers

2002-04-23 Thread Conan Chai
hi, are there any perl modules that splits the http request headers into name/value pairs? Conan It Will Come To Us !!! [EMAIL PROTECTED]

HTTP headers

2002-07-30 Thread Octavian Rasnita
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 directly, not through a CGI script. Why? Because when clicking on a link for downloading a zip file directly, the download managers are triggered, and the page visitors can download 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

2003-01-15 Thread Octavian Rasnita
t; To: <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 11:05 PM Subject: HTTP headers 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:

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-16 Thread Philip Pawley
right? Actually, this brings me to my reason for messing with HTTP headers: I want to create "Expires:" HTTP headers for the server response when it is dishing out image files (also for javascript and css files). Server-side includes would be no use for this anyway. How would I do it? Thanks ag

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 mo

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-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-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-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-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 bro

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

About unoffical HTTP headers

2005-04-26 Thread Shu Cao
al HTTP header value like "x: y". I examine the %ENV hash, and found nothing but some standard HTTP headers like "Accept", "User-Agent", etc.. And I check the CGI.pm module too, seems there is no method to get the unofficial HTTP headers. If you guys know the HOWT

HTTP headers/Mime types

2001-06-26 Thread Gary Stainburn
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 inside a CGI so people can view them on-line and have their browser fire off a

Re: About unoffical HTTP headers

2005-04-26 Thread Wiggins d'Anconia
e problem, how can Perl > CGI program get the unofficial HTTP header value like "x: y". I examine > the %ENV hash, and found nothing but some standard HTTP headers like > "Accept", "User-Agent", etc.. > > And I check the CGI.pm module too, seems there is

RE: About unoffical HTTP headers

2005-04-26 Thread Charles K. Clarkson
nd found nothing but some standard HTTP : headers like "Accept", "User-Agent", etc.. This is the first I have heard there were unofficial HTTP headers and you have me curious. Why would you want to see these? Are you writing a low level server script? TIA, Charles K. Clar

Re: About unoffical HTTP headers

2005-04-26 Thread Shu Cao
Hi, Wiggins d'Anconia: > This is going to depend on the web server, as it is the software parsing > the HTTP request, it just passes execution to the CGI and sets up the > environment before hand. So it is up to the web server software to set > in the environment the extra headers, you should chec

Re: About unoffical HTTP headers

2005-04-26 Thread Shu Cao
Hi, Charles K. Clarkson: > This is the first I have heard there were unofficial HTTP headers > and you have me curious. Why would you want to see these? Are you > writing a low level server script? We just use HTTP protocol transferring our customized messages. The clien

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

cgi script to capture http headers

2006-09-28 Thread Kaushal Shriyan
Hi ALL I have a issue when i use script (test.cgi) #!/bin/bash echo "Content-type: text/plain"; echo set I get all the http headers populated with the values correctly but when I use the below script (test-cgi) #!/bin/sh # disable filename globbing set -f echo Content-type:

Re: cgi script to capture http headers

2006-09-28 Thread Beginner
Hi On 28 Sep 2006 at 17:21, Kaushal Shriyan wrote: > Hi ALL > > I have a issue > > when i use script (test.cgi) > > #!/bin/bash > echo "Content-type: text/plain"; > echo > set > > I get all the http headers populated with the values correctly