RESTful Web Services: How to read the header - Get request

Hi all,

I’m working to manage a webservice with Servoy.

The IT division of my client is asking me to read an information (HTTP accept-language ) within the header part of a Get Request instead to specify it as an argument/query_param.

My question is:

1 - Can I intercept the HTTP-Header of a Get Request in some way?
2 - Is a good practice to use the restfull in that way (using http header param instead argument/query_param).

Thank you

Marco

Use Velocity for this, you will then do:
function vr_getContext(request) {
var headers = request.headers;
// headers will be an object key value pairs for each header.
}

Thank you for your reply Patrick.

Velocity can also manage a client pool to manage incoming requests?

Yes it can there are various options

Cheers
Gordon