× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



1. Make sure that the /$Header section is being written first.
2. It appears that you have an empty line before the Content-type:
text/html line. Remove that line and see if that works. Other than that
it looks good.


On Tue, Aug 14, 2012 at 4:35 AM, Kevin Turner
<kevin.turner@xxxxxxxxxxxxxxx>wrote:

At the risk of stating the obvious, have you double checked the output
from your CGI program (as opposed to just checking the template). There is
definitely something amiss with the HTTP header in your output.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Darryl Freinkel
Sent: 14 August 2012 02:58
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Error message: Cannot read script from pipe.

I have a new problem that I cannot figure out. I get the above message. I
am using CGIDEV2.



The problem is that something is failing when I display my error section
/$messages. It generates the following, all other sections work correctly:



Here is the message from the log:

[Mon Aug 13 21:51:20 2012] [error] [client 192.168.250.80] ZSRV_MSG0108:
Header from script is not valid. Bad header is <!--- 5 --
------------------------------------------------------------>: File name
------------------------------------------------------------>is
/QSYS.LIB/A4G_TRAINW.LIB/webrpg14.pgm, referer: ..



Here is my HTML code:



/$Header

Content-type: text/html



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">



<html>

<head>

<title>Change Customer Master - /%cust_no%/</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="StyleSheet" href="/amcu_cgi/css/AMCU.css" media="screen"
type="text/css">

</head>



<body>

<!--- 1 -------------------------------------------------------------->

<!-- Banner details -->

<!--- 2 -------------------------------------------------------------->

/$banner

<table width="100%" border="1" cellpadding="1" cellspacing="1" >

<tr>

<td class="textcenter">This is a banner heading</td>

</tr>

</table>

<!--- 3 -------------------------------------------------------------

<!--Messages record

<!--- 4 ------------------------------------------------------------ -->

/$Messages

<h1>Error Log: No parameters were passed to the program</h1>

<!--- 5 --------------------------------------------------------------->

<!-- Display the master record -->

<!--- 6 --------------------------------------------------------------->

/$table01

<br>

<center>

<form id="Form1" method="post" action="/amcu_cgi/webrpg14.pgm" >

<table width="80%" border="5" cellpadding="5" cellspacing="5" >

<tr>

<td class="textright" width="35%">Customer Number :</td>

<td class="text" width="65%">/%Cust_No%/</td>

</tr>

<tr>

<td class="textright" width="35%">Customer Name :</td>

<td class="text" width="65%"><input type="text"
value="/%Cust_Name%/"> </td>

</tr>

<tr>

<td class="textright" width="35%">Address 1 :</td>

<td class="text" width="65%" ><input type="text"
value="/%address_1%/"> </td>

</tr>

<tr>

<td class="textright" width="35%">Address 2 :</td>

<td class="text" width="65%"><input type="text"
value="/%address_2%/"> </td>

</tr>

<tr>

<td class="textright" width="35%">City :</td>

<td class="text" width="65%"><input type="text"
value="/%city%/"> </td>

</tr>

<tr>

<td class="textright" width="35%">State :</td>

<td class="text" width="65%"><input type="text"
value="/%state%/"
</td>

</tr>

<tr>

<td class="textright" width="35%">Zip :</td>

<td class="text" width="65%"><input type="text"
value="/%zip%/"> </td>

</tr>

<tr>

<td class="textright" width="35%">Work telephone number :</td>

<td class="text" width="65%"><input type="text"
value="/%tel_work%/"> </td>

</tr>

<tr>

<td class="textright" width="35%">Mobile telephone number :</td>

<td class="text" width="65%"><input type="text"
value="/%tel_mobile%/"> </td>

</tr>

<tr>

<td>&nbsp</td>

<td><input type="submit" value="Change customer" > </td>

</tr>

</table>

</form>

</center>

<br>

<!--- 8 ----------------------------------------------------------------->

<!--- Display the footer record ->

<!--- 9 ------------------------------------------------------------------>

/$Footer

<table width="100%" border="1" cellpadding="1" cellspacing="1" >

<tr>

<td><center><a href="/amcu_cgi/ex13.pgm">Return to List</a> |
Application: EX13</center></td>

</tr>

</table>





</body>

</html>





Darryl Freinkel | Assignment 400 Group, Inc.

Tel: 770.321.8562 ext 111 | Fax 770.321.8562

2247 La Salle Dr, Marietta GA, 30062, USA | PO Box 72556, Marietta, GA
30007-2556

E-mail: dfreinkel@xxxxxxxxxxxxxxxxx

Web: www.assignment400.com



--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post
a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change
list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


NOTICE: The information in this electronic mail transmission is intended
by CoralTree Systems Ltd for the use of the named individuals or entity to
which it is directed and may contain information that is privileged or
otherwise confidential. If you have received this electronic mail
transmission in error, please delete it from your system without copying or
forwarding it, and notify the sender of the error by reply email or by
telephone, so that the sender's address records can be corrected.




--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.