[OpenLayers-Dev] OpenLayers Ajax in trunk
Christopher Schmidt
crschmidt at metacarta.com
Sun Feb 24 22:43:47 EST 2008
On Sat, Feb 23, 2008 at 02:34:00PM +0100, Eric Lemoine wrote:
> Hello
>
> I've just been reading over the Ajax.js code and have been surprised
> by the following code in OpenLayers.Ajax.request():
>
> if (this.method != 'get' && this.method != 'post') {
> // simulate other verbs over post
> params['_method'] = this.method;
> this.method = 'post';
> }
>
> The OpenLayers Ajax code doesn't allow for other HTTP methods than GET and POST!
>
> Does it mean that current OpenLayers (trunk) cannot work with FeatureServer?
FeatureServer treats POST and PUT the same, and always has.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list