HP3000-L Archives

March 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Jansen, Eric" <[log in to unmask]>
Reply To:
Jansen, Eric
Date:
Fri, 23 Mar 2001 17:10:27 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (108 lines)
Hi @,

I am installing the WAP enabling for the 3000 on my system.

I successfully installed the index.wml file (see below) and made the changes
in httpd.conf for APACHE.

From my cellphone simulator on my PC (M3Gate) I can successfully connect to
the HP3000 (index.wml) and get to the menu.

When I try to run a cgi-script (eg. listuser.cgi: see below) I get the
following error on the cellphone simulator:
HTTP500 Internal Server Error
The server encountered an unexpected condition that prevented it from
fullfiling the request.

In the error log from APACHE I see the following:
HTTPD.PUB.APACHE: [Fri Mar 23 08:37:33 2001] [error] [client
xxx.xxx.xxx.xxx] malf
ormed header from script. Bad header=<?xml version="1.0"?>:
/APACHE/PUB/htdocs/t
est.cgi

Can anybody help me with this?
Was anybody successful in installing this?

Thanks in advance,

Eric Jansen

index.wml:
----------
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<!-- Main menu for WML examples -->
<wml>
<card title="HP e3000 Home Page">
<p>HP e3000 Wireless<br/>
<a title="About" href="#whatis">About e3000? </a><br/>
<a title="Examples" href="#apps">MPE Examples </a><br/>
</p>
<do type="options" label="e3000">
<go href="/index.wml"/>
</do>
</card>
<card id="whatis">
<p>
This is the HP e3000 CDITEST running on MPE/iX 6.5. The Web Server here now
supp
orts WAP contents!
</p>
<do type="options" label="e3000">
<go href="/index.wml"/>
</do>
</card>
</p>
<do type="options" label="e3000">
<go href="/index.wml"/>
</do>
</card>
<card id="apps">
<p>
MPE Example Apps <br/>
<a title="listuser" href="/cgi-bin/wap/scripts/listuser.cgi">:listuser
</a><br/>
<a title="listgroup" href="/cgi-bin/wap/scripts/listgroup.cgi">:listgroup
</a><b
r/>
<a title="showtime" href="/cgi-bin/wap/scripts/showtime.cgi">:show time
</a><br/
>
<a title="showme" href="/cgi-bin/wap/scripts/showme.cgi">:showme</a><br/>
<a title="showjob" href="/cgi-bin/wap/scripts/showjob.cgi">:showjob
</a><br/>
<a title="test" href="/test.cgi">:test </a><br/>
</p>
<do type="options" label="examples">
<go href="index.wml"/>
</do>
</card>
</wml>

listuser.cgi:
-------------
#!/bin/sh
a=`callci listuser | cut -c1-20`

cat - <<EOF
Content-type: text/vnd.wap.wml
<xml version="1.0">
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD
/wml_1.1.xml">

<wml>
<card>
<do type="accept" label="back">
<go href="../../../index.wml#apps"/>
</do>
<do type="options" label="e3000">
<go href="../../../index.wml"/>
</do>
<p>$a</p>
</card>
</wml>
EOF

ATOM RSS1 RSS2