<div dir="ltr"><div><div><div><div>Hi,<br><br></div>The errors I got earlier were due to the version of my Python install. Python 3.x have different syntax styles than the earlier version. So I shift to an older version of Python. Now I have nor error messages in log file. But I get an error in the firebug<br>
<br><span class=""><span class="">RangeError: invalid array length<br><br></span></span></div><span class=""><span class="">I got a valid XML response, but the WFS features are not visible due to this error.<br><br></span></span></div>
<span class=""><span class="">Thanks,<br></span></span></div><span class=""><span class="">Nipuni<br></span></span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 9:35 PM, Nipuni Perera <span dir="ltr"><<a href="mailto:nipuni880917@gmail.com" target="_blank">nipuni880917@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br><br></div>This is what I got with error.log file:<br><div><br>SyntaxError: invalid syntax\r, referer: <a href="http://localhost/temp/temp.html" target="_blank">http://localhost/temp/temp.html</a><br>
Premature end of script headers: proxy.cgi, referer: <a href="http://localhost/temp/temp.html" target="_blank">http://localhost/temp/temp.html</a><br>
File "C:/Server/Apache22/htdocs/temp/proxy.cgi", line 45\r, referer: <a href="http://localhost/temp/temp.html" target="_blank">http://localhost/temp/temp.html</a><br>print "Status: 502 Bad Gateway"\r, referer: <a href="http://localhost/temp/temp.html" target="_blank">http://localhost/temp/temp.html</a><br>

                             ^\r, referer: <a href="http://localhost/temp/temp.html" target="_blank">http://localhost/temp/temp.html</a><br>SyntaxError: invalid syntax\r, referer: <a href="http://localhost/temp/temp.html" target="_blank">http://localhost/temp/temp.html</a><br>

<br></div><div>Thanks,<br></div><div>Nipuni<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jun 5, 2013 at 10:30 AM, Raffaele Morelli <span dir="ltr"><<a href="mailto:raffaele.morelli@gmail.com" target="_blank">raffaele.morelli@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">2013/6/5 Nipuni Perera <span dir="ltr"><<a href="mailto:nipuni880917@gmail.com" target="_blank">nipuni880917@gmail.com</a>></span><br>

<div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Yes I have Python installed and the first line of the proxy.cgi is <br><br>#!C:/Python33/python.exe -u<br><br></div>which points to the python.exe location.<br></div><div>




I have set the changes to httpd.conf file as described <a href="http://vijaysambhe.wordpress.com/2012/10/12/openlayers-cross-domain-configure-proxyhost-on-windows/" target="_blank">here</a>. <br>
</div><div><br></div>I have reinstalled Python and the response change from the script to an error message. This is the response I received for the POST request:<br></div><div><br><pre><code><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
</code><code><html><head>
</code><code><title>500 Internal Server Error</title>
</code><code></head><body>
</code><code><h1>Internal Server Error</h1>
</code><code><p>The server encountered an internal error or
</code><code>misconfiguration and was unable to complete
</code><code>your request.</p>
</code><code><p>Please contact the server administrator,
</code><code> <a href="mailto:admin@example.com" target="_blank">admin@example.com</a> and inform them of the time the error occurred,
</code><code>and anything you might have done that may have
</code><code>caused the error.</p>
</code><code><p>More information about this error may be available
</code><code>in the server error log.</p>
</code><code></body></html><br><br></code></pre><pre><font><span style="font-family:arial,helvetica,sans-serif"><br>This is the same error message I get when I try to open the proxy.cgi from localhost. </span></font></pre>




Thanks,<br></div><div>Nipuni</div></div></blockquote><div><br></div></div></div><div>You should have a look at apache error log, it's clearly a misconfiguration in apache (error 500) and what you need for debug is there.</div>

<div>
I would suggest to check directory and/or file permissions (ie. virtual host configuration directives).</div><span><font color="#888888"><div><br></div><div>/r</div></font></span></div>
<br></div></div><div class="im">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></div></blockquote></div><br><br clear="all"><div class="im"><br>-- <br><div><span>Nipuni Piyabasi Perera</span></div><span>Undergraduate</span><div>Department of Computer Science And Engineering</div><div>University of Moratuwa<div>
Sri Lanka</div>
</div>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div><span>Nipuni Piyabasi Perera</span></div><span>Undergraduate</span><div>Department of Computer Science And Engineering</div><div>University of Moratuwa<div>Sri Lanka</div>
</div>
</div>