Hi,<div><br></div><div>This is really weird. I have cgi-bin working. I know this since I have a function which make AJAX call and I am receiving JSON in return. Now I am trying to get WFS working but that does not seem to work. It is giving me the following error in firebug,</div>

<div><br></div><div>"NetworkError: 502 Bad Gateway - <a href="http://128.196.142.12/cgi-bin/proxy.cgi?url=http%3A%2F%2F128.196.142.12%3A8080%2Fgeoserver%2Fwfs">http://128.196.142.12/cgi-bin/proxy.cgi?url=http%3A%2F%2F128.196.142.12%3A8080%2Fgeoserver%2Fwfs</a>"<br clear="all">

<div><br></div><div>This is how I am adding WFS,</div><div><br></div><div><div>var states = new OpenLayers.Layer.Vector("USA States", {</div><div><span class="Apple-tab-span" style="white-space:pre">                             </span> strategies: [new OpenLayers.Strategy.BBOX()],</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span> protocol: new OpenLayers.Protocol.WFS({</div><div><span class="Apple-tab-span" style="white-space:pre">                                     </span> url: "<a href="http://128.196.142.12:8080/geoserver/wfs">http://128.196.142.12:8080/geoserver/wfs</a>",</div>

<div><span class="Apple-tab-span" style="white-space:pre">                                      </span> featureType: "usa:states",</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span> featureNS: "<a href="http://usa.opengeo.org">http://usa.opengeo.org</a>"</div>

<div><span class="Apple-tab-span" style="white-space:pre">                              </span> })</div><div>});</div></div><div><br></div><div>Is there something wrong with the code?</div><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div>

<br>
</div>