Those other settings will just have defaults that you won't normally have to worry about.

In theory %%EBCDIC/EBCDIC%% should work for you. Your header information will be passed to stdout in EBCDIC, converted to ASCII and in theory it should detect from the header that it is not a text based transmission and leave the body untouched. It is therefore important that the body of your message is not EBCDIC (i.e. UTF-8 or UTF-16 or ASCII).

Perhaps one of your earlier attempts did work, but the body of your message was not understandable to Excel. I have no great experience of different valid excel formats so I don't know if your example was OK or not.

As I said earlier, our Apache servers use "CGIConvMode BINARY" so in your example we would pass the header in ASCII and the body in UTF-8.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: 10 September 2012 17:00
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] how to analyze what qtmhwrstout is sending to the browser?

ok. I am understanding better now. CGIConvMode comes from the httpd.conf file used when the apache server was started. I am using the CGIDEV2APA config from the CGIDEV2 install.

CGIConvMode %%EBCDIC/EBCDIC%%

I do not see any settings for cgi_ascii_ccsid and cgi_ebcdic_ccsid


On Mon, Sep 10, 2012 at 11:25 AM, Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx> wrote:
The only information I haven't seen yet is the Apache config file for your Apache instance. For example, what do you have CGIConvMode set to?

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Kevin Turner
Sent: 10 September 2012 16:07
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] how to analyze what qtmhwrstout is sending to the browser?

Apache is sending that content to your browser because (in all likelihood) it cannot make any sense of the data you have written to stdout. It probably does not understand the header.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Steve Richter
Sent: 10 September 2012 14:51
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] how to analyze what qtmhwrstout is sending to the browser?

How do I see what qtmhwrstout is actually sending to the browser? I am using the IE9 browser. But I also have firefox on this PC.

I am running fiddler but am not exactly sure how to use it.

I see in the "web sessions" listbox and entry for the browser calling my cgi program:
# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
2 500 HTTP 192.168.1.53:8014 /cgidev2p/http5004.pgm 197 text/html;
charset=ISO-8859-1 iexplore:5340


and then in the lower right output panel I get the following:

HTTP/1.1 500 Internal Server Error
Date: Mon, 10 Sep 2012 03:45:40 GMT
Server: Apache
Content-Length: 197
Connection: close
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE> </HEAD><BODY> <H1>Internal Server Error</H1> Cannot read script output pipe.
</body></html>

Which I do not understand. Is this what the browser is receiving from the as400? In this case, what I am passing to qtmhwrstout is some xml in utf8 encoding that is entended to be opened as an attachment by excel.

thanks,
--
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.


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.

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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2022 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.