# How do I overrideMimeType in Openalyers.Request.Get

I can't find any info on this. When performing a GET request with the following format, I cant figure out how to add the request for "overrideMimeType("application/xml")":

request = OpenLayers.Request.GET({
url: "http://aaaaaaaa.com",
async: true,
callback: request_handler,
});


An Openlayers request like this creates the request object and sends it all in this single code. I know if I weren't using the OpenLayers API, I would do something like:

request.overrideMimeType("application/xml");


But I can't get this to work using using my format. Any ideas? Thanks!

-

Yoy should use headers property of OpenLayers.Request object:
request = OpenLayers.Request.GET({