Make sure you have 2 CR/LF between your headers and your message payload. It
looks like the payload is being interpreted as headers.
-Original Message-
From: Raheel Hassan [mailto:raheel.has...@gmail.com]
Sent: Wednesday, December 02, 2009 4:26 AM
To: beginners@perl.org
Cc:
Ah, mod-perl{{{ shudder }}}.
$asperl-setContentType($apache-content_type());
I think there's a bunch of relevant code we're not seeing. Without having been
set prior, I don't believe $apache-content_type will return the right header
in this situation because it relies on file extension
Hi,
I've got some old code to deal with and I have hit a problem.
If there is a request for a page that has mixed content EG: 'text/html'
and 'image/jpeg', the image media is not being displayed correctly under
the FireFox browser.
The way things currently work is that media other than
the HTTP response headers would probably shed the most light on the problem,
nudge, nudge;-)
-Original Message-
From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc]
Sent: Thursday, July 02, 2009 1:24 PM
To: beginners-cgi@perl.org
Subject: Re: content type headers
Hellman, Matthew wrote
If you want to use the function oriented interface for CGI, you need to
import the functions:
See:
http://search.cpan.org/~lds/CGI.pm-3.33/CGI.pm#PROGRAMMING_STYLE
example:
http://search.cpan.org/~lds/CGI.pm-3.33/CGI.pm#A_COMPLETE_EXAMPLE_OF_A_S
IMPLE_FORM-BASED_SCRIPT
-Original
You can read all the query param names into an array using the param
method of cgi.cpm. Then you just loop through the array.
See:
http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm#FETCHING_THE_NAMES_OF_ALL
_THE_PARAMETERS_PASSED_TO_YOUR_SCRIPT:
@params = $query-param
foreach my $param ( @params )
The original intent was to generate a save-as dialog box instead of
displaying the PDF inline? I believe the problem with this is that it
can cause blank browser windows to open, which some people don't like.
This is a browser issue and I'm not aware of an alternative. Removing
the
Do you mean you just don't want the actual file uploaded...just the name
of it? You can probably accomplish this by having the file form field
in a separate form (that is not submitted). Then use javascript to
populate the field in the form that actually does get submitted.
-Original
wow, that's some serious regex just to remove a leading character from a string.
anyway, this is not a CGI issue per se. see if this helps:
http://ppewww.ph.gla.ac.uk/%7eflavell/www/formquestion.html
-Original Message-
From: Shawn Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03,