Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Help in downloading HTML and images through CGI

From: "richard latter" <richard_lat...@hotmail.com>
Subject: Help in downloading HTML and images through CGI
Date: 1999/12/22
Message-ID: <945859699.20781.0.nnrp-09.9e98a5df@news.demon.co.uk>#1/1
X-Deja-AN: 563757302
X-NNTP-Posting-Host: avellino.demon.co.uk:158.152.165.223
X-Trace: news.demon.co.uk 945859699 nnrp-09:20781 NO-IDENT avellino.demon.co.uk:158.152.165.223
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Newsgroups: de.comm.infosystems.www.authoring.cgi
X-Complaints-To: abuse@demon.net

Hi All,

I'm a newbie to CGI and perl, but have recently written a few perl modules
to reads and extract text files in HTML table format.

The problem I have is that I'm getting and displaying my HTML forms from
another local file that I'm reading.  I just using the open and the print
calls to STDOUT, nothing fancy.  The problem is, the HTML that I am
displaying, also contains IMG SRC tags with images and it's this that it's
not displaying.  Just the raw text format and tables.  When viewing the
source for the web browser end, it clearly shows the tags.  Also, when I
view the HTML not through CGI, it displays it fine with all images includes.

Is this a problem with perl, CGI or the web browser?  How can I get around
this or is there an easy way of displaying images to a browser?

TO recap,

1.  I'm not using any CGI modules at present.
2.  I'm using the POST method with my form action for the CGI request.
3.  I'm currently using Perl to send the line print "Content-type:
text/html", "\n\n";
4.  It reads the HTML out to the browser including all IMG tags, but no
graphics are displayed.
5.  When I display the html file directly, it appears OK with all images in
place, but not through my CGI perl program.

Thanks in adance,

richard_lat...@hotmail.com

passme