Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there a specification for the protocol OpenLayers uses to communicate with the server? I'm trying to reverse engineer what happens on GET, POST, PUT and DELETE, but I don't like to do it this way.

Example:

var vectorLayer = new OpenLayers.Layer.Vector("Vector Layer", {
    protocol: new OpenLayers.Protocol.HTTP({
        url: '...',
        format: new OpenLayers.Format.GeoJSON({})
    }),
});
share|improve this question
add comment

2 Answers 2

It isn't any particular protocol - its using a range of protocols, depending on what kind of layer you create. So if you create a WMS layer, its OGC WMS; it you create a TMS layer, its OSGEO TMS, and so on.

share|improve this answer
add comment

I'm not sure what you mean by specification but would looking at the source code help you work out what's going on?

If so look at http://dev.openlayers.org/releases/OpenLayers-2.12/lib/OpenLayers/Protocol/HTTP.js

share|improve this answer
    
thats the way im doing now. i'm looking for a document that describes what kind of data is sent to the server to do GET, POST, PUT or DELETE. an what the server is sending as response. now i'm analyzing the calls via firebug but i want to know if there is a kind of standard –  MontyBurns Jan 22 '13 at 14:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.