<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="post-text">
      <p>Hi everybody,<br>
      </p>
      <p>I use the GeoExt QueryPanel, which I got working so far. I
        configured an osgeo proxy on my Apache Server, I use the
        override-ext-ajax.js and have the <code>OpenLayers.ProxyHost =
          "/cgi-bin/proxy.cgi?url=";</code> class configured. My problem
        is the following: When the<font color="#000000"> <a
href="http://projects.opengeo.org/suite/browser/trunk/recipes/resources/extras/QueryPanel.js?rev=1708"
            rel="nofollow">QueryPanel.js</a>
        </font> [
        <a class="moz-txt-link-freetext" href="http://projects.opengeo.org/suite/browser/trunk/recipes/resources/extras/QueryPanel.js?rev=1708">http://projects.opengeo.org/suite/browser/trunk/recipes/resources/extras/QueryPanel.js?rev=1708</a>
        ] sends requests to geoserver, it uses wrong URLs which I
        figured must be related to the QueryPanel.js file. The sent
        request URLs look like this:</p>
      <pre><code><a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%2Fcgibin%2Fproxy.cgi%2Fwfs%3FVERSION%3D1.1.0%26REQUEST%3DDescribeFeatureType%26TYPENAME%3Dcases%26query%3D">http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%2Fcgibin%2Fproxy.cgi%2Fwfs%3FVERSION%3D1.1.0%26REQUEST%3DDescribeFeatureType%26TYPENAME%3Dcases%26query%3D</a>
</code></pre>
      <p>The request is sent via the proxy.cgi twice. The request URL
        should rather look like this, going passed geoserver&acute;s WFS:</p>
      <pre><code><a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs%3FVERSION%3D1.1.0%26REQUEST%3DDescribeFeatureType%26TYPENAME%3Dcases%26query%3D">http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs%3FVERSION%3D1.1.0%26REQUEST%3DDescribeFeatureType%26TYPENAME%3Dcases%26query%3D</a>
</code></pre>
      <p>When using firebug, I can temporarily change the URLs and make
        the queries work! When replacing line 183</p>
      <pre><code>url: Ext.urlAppend(protocol.url, Ext.urlEncode({
</code></pre>
      <p>with </p>
      <p><code>url: Ext.urlAppend(<a class="moz-txt-link-rfc2396E" href="http://localhost/geoserver/wfs">"http://localhost/geoserver/wfs"</a>,
          Ext.urlEncode({,</code> </p>
      <p>the describeFeatureType requests are sent the right way, but
        attribute queries are still using the wrong URL (<code>localhost/cgi-bin/proxy.cgi/wfs</code>
        instead of <code>localhost/geoserver/wfs</code>). I can&acute;t find
        the responsible line for the query URLs and I&acute;m also not really
        sure what to replace, since I&acute;m quite new to JS &amp; GeoExt.<br>
      </p>
      <p>If it&acute;s not possible to fix my problem that way, can you see
        another method to fix it?<br>
      </p>
      <p>Any help is appreciated!<br>
      </p>
      <p>Cheers, <br>
      </p>
      <p>Philippe<br>
      </p>
    </div>
  </body>
</html>