<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div>Is anyone here running OpenLayers on OS X Server 10.5? I know there are some running on OS X Leopard client. But my problem seems to be on OS X Server.&nbsp;</div><div><br></div><div>I have confirmed that proxy.cgi works like it should on OS X Leopard when I run Apache locally. When I do a request to proxy.cgi running on OS X Server, the request is malformed as you can see by the discussion under.</div><div><br></div><div>the response headers show "<b>application/vnd.ogc.se_x</b>ml" while it should be:</div><div><br></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><b>application/vnd.google-earth.kml+XML</b></div></div></div></div></div></div></div></div></div><br></div><div>This has nothing to do with the openlayers code as I have checked this several times. So if anyone has any idea what could be the difference in Apache or the python modules needed for <b>proxy.cgi</b>&nbsp;<b>&nbsp;</b>I can get working with the OL solution. If not I will have to reinstall the OS X Server to OS X Client. And that should not be necessary??</div><div><br></div><div>/asle</div><div><br></div><div><br></div><div><br><div><div>Den 13. mai. 2009 kl. 23.59 skrev Asle Benoni:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello again,<div>Is anyone running proxy.cgi on Mac OS X 10.5 Server? I believe it must be a problem with server since I have tested it on OS X 10.5 Leopard client and it works fine there.</div><div><br></div><div>/asle</div><div><br><div><div>Den 13. mai. 2009 kl. 00.03 skrev Asle Benoni:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><font class="Apple-style-span" color="#000000"><br></font></div> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div>This problem is still not solved. I believe it has to do with <b>proxy.cgi. </b>&nbsp;If I do a request from proxy.cgi on another linux server it works fine but with the proxy.cgi on my Mac OS X Server it fails. See the attached screenshots.</div><div><br></div><div>The headers that are sent (from proxy.cgi?) is "application/vnd.ogc.se_xml" and it is ...kml... when proxy.cgi is on another linux server.</div><div>So you see the response is not interpretable. Is there a another version of proxy.cgi for Mac? I checked calling proxy.cgi directly and it redirects to openayers.org. So it should work?</div><div><br></div><div>Is there a way to &nbsp;rewrite the headers so the server will understand it?</div><div>I am completely lost since I cannot use KML or WFS on this server.</div><div><br></div><div>/asle</div><div>&nbsp;</div><div><span>&lt;Bilde 6.png&gt;</span><span>&lt;Bilde 5.png&gt;</span><br><div><div>Den 26. mars. 2009 kl. 13.31 skrev Alexandre Dube:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>OpenLayers.Format.KMZ doesn't exist. &nbsp;You should try KML instead and have &amp;format=application/vnd.google-earth.kml+XML in your url instead. &nbsp;I never tried it thought, but that's what I would try.<br><br>By the way, KMZ is a zipped version of a KML. &nbsp;You could replace a file.kmz to file.zip then unzip it and you would have your uncompressed KML. &nbsp;OpenLayers currently can't read KMZ files.<br><br>Regards,<br><br>Alexandre<br><br>Asle Benoni wrote:<br><blockquote type="cite">Yes, I have read that and configured proxy.cgi with the domains of the server.<br></blockquote><blockquote type="cite">Now the layer I get from GeoServer is KMZ and not KML (don´t know why) so I put the code like this in my html.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.addLayer(new OpenLayers.Layer.GML("KML", "<a href="http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kmz+XML&amp;">http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kmz+XML&amp;</a>", <br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;format: OpenLayers.Format.KMZ,<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatOptions: {<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extractStyles: true,<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extractAttributes: true<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}));<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I see now in FireBug that a http request is done to the kmz file but I do not see the layer in the map.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/asle<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br>-- <br>Alexandre Dubé<br>Mapgears<br><a href="http://www.mapgears.com">www.mapgears.com</a><br><br></div></blockquote></div><br></div></div></div><br></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>