I did get XML from that full URL, among other things I learned that  <span class="b"></span><span class="m"></span><span class="t"><Prompt</span><span class="m">></span><span class="tx">It's not easy being green :-)</span><span class="m"></</span><span class="t">Prompt</span><span class="m">></span><br>
Now I did a helloworld.cgi that looks like:<br>#!/usr/bin/perl<br>print "Hello World!\n";<br><br>and I get an HTTP 500 error<br>[Thu Mar 27 19:57:35 2008] [error] [client <a href="http://172.16.0.153">172.16.0.153</a>] malformed header from script. Bad header=Hello World!: hellowworld.cgi<br>
[Thu Mar 27 19:57:35 2008] [warn] /perl/hellowworld.cgi did not send an HTTP header<br><br>So either my helloworld.cgi is wrong or mod_perl is confused, I think.<br><br>Josh<br><br><div class="gmail_quote">On Thu, Mar 27, 2008 at 7:46 PM, Charles Jones <<a href="mailto:jonescr@cisco.com">jonescr@cisco.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  

<div bgcolor="#ffffff" text="#000000">
Josh Luthman wrote:
<blockquote type="cite"><div class="Ih2E3d">* See if you can telnet from your bb server to port 80 of
your phone
(in this case <a href="http://172.16.0.152/" target="_blank">172.16.0.152</a>)<br>
-> telnet <a href="http://172.16.0.152" target="_blank">172.16.0.152</a>
80<br></div><div class="Ih2E3d">
Does this look the same as yours?<br>
</div></blockquote>
Yep<div class="Ih2E3d"><br>
<blockquote type="cite"><br>
* Make sure that the apache user can execute the bb command (in this
case /home/shire/server/bin/bb)<br>
-rwxrwxrwx 1 hobbuzer hobbituzer 216177 Nov 23 09:56 bb<br>
  <br>
</blockquote></div>
More perms than needed, but that definitely should work (next version
won't need bb binary at all).<div class="Ih2E3d"><br>
<blockquote type="cite">* Make sure that the hobbit.cgi is accessible, and that
its working
properly (from your browser go to <a href="http://74.218.x.x/perl/hobbit.cgi" target="_blank">http://74.218.x.x/perl/hobbit.cgi</a>
and
you should get some XML code back in your browser window)<br>
Here is probably my problem, all I get is a white page.  </blockquote></div>
Sorry, I should have specified the full URL to try as
<a href="http://72.218.x.x/perl/hobbit.cgi?action=execute_push" target="_blank">http://72.218.x.x/perl/hobbit.cgi?action=execute_push</a><br>
That should give you some XML.  without that action parameter you will
indeed get a blank page.<div class="Ih2E3d"><br>
<br>
<blockquote type="cite">I have nothing in error_log but I get a (I believe it to
be) normal access_log entry:<br>
  <a href="http://172.16.0.153" target="_blank">172.16.0.153</a>
- - [27/Mar/2008:18:21:25 -0400] "GET /perl/hobbit.cgi HTTP/1.1" 200 -
"-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:<a href="http://1.8.1.13" target="_blank">1.8.1.13</a>)
Gecko/20080311 Firefox/2.0.0.13"<br>
</blockquote></div>
Yep, that's normal for hitting it from your browser.<div class="Ih2E3d"><br>
<blockquote type="cite"><br>
* do a tail -f of your apache access_log, and see if you get a hit from
the IPPhone when you run hobbit.cgi, you should see something like
this: <a href="http://10.216.100.54/" target="_blank">10.216.100.54</a> - - [23/Mar/2008:04:21:36 -0700]
"GET
/perl/hobbit.cgi?action=execute_push HTTP/1.1" 200 260 "-"
"Allegro-Software-WebClient/3.12"<br>
-> /var/www/perl/hobbit.cgi && grep 172\.16\.0\.152
access_log<br>
-><br>
Is empty =(<br>
  <br>
>From what I can understand is that the hobbit.cgi is not telling the
phone to access the page.  Is this right?<br>
</blockquote></div>
Right, so there is either something in the script breaking, a CGI
issue,  or possibly you can connect to IPPhone, but some network acl
prevents the IPPhone from connecting to your cgi host. Once you do the
test above and get XML back or not, that will tell us where to look
next.<br>
<br>
You may want to make a helloworld.cgi that just has:<br>
print "Hello World!\n";<br>
<br>
and see if you can hit <a href="http://72.218.x.x/perl/helloworld.cgi" target="_blank">http://72.218.x.x/perl/helloworld.cgi</a> and see
the message in your browser...this will tell us if your mod_perl is
configured properly.<br>
<br>
-Charles<br>
</div>

</blockquote></div><br><br clear="all"><br>-- <br>Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.<br>
--- Henry Spencer