Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/07/2013, 05:18
gerion_angel
 
Fecha de Ingreso: mayo-2012
Mensajes: 49
Antigüedad: 12 años
Puntos: 0
Pregunta HTTP request no devuelve todos los valores

Buenos dias foro.

estoy intentando sacar uno de los valores de un objeto XMLhttpRequest. en concreto, el valor de location

utilizando los metodos getAllResponseHeaders() y getResponseHeader('Location').

no resulta posible acceder a el.

utilizando la herramienta Advanced Rest CLient App, he podido ver que la estructura de la respuesta HEAD es la siguiente

Código HTML:
Redirect
To:http://laurl...archivo.mp4
 with status: 302 Show explanation HTTP/1.1 302 Moved Temporarily
Redirection information has not been cached.
Server: Apache/2.2.14 (Ubuntu) 
Location: http://laurl...arcchivo.mp4 
Content-Language: es-ES 
Content-Type: text/html; charset=ISO-8859-1 
Content-Length: 0 
Expires: Wed, 31 Jul 2013 10:04:15 GMT 
Date: Wed, 31 Jul 2013 10:02:13 GMT 
Connection: keep-alive
Vary: Accept-Encoding 
Status
200 OK Show explanation Loading time: 228
Request headers 
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Content-Type: text/plain; charset=utf-8 
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: es-ES,es;q=0.8
Cookie: odin=banebdyede; 
__utma=.....;
 __utmz=.....
Response headers 
Cache-Control: max-age=2592000 
Content-Length: 93692340 
Content-Type: video/mp4 
Expires: Fri, 30 Aug 2013 09:10:03 GMT 
Last-Modified: Tue, 25 Jun 2013 15:31:25 GMT 
Accept-Ranges: bytes 
Server: Apache/2.2.14 (Ubuntu) 
Date: Wed, 31 Jul 2013 10:02:13 GMT 
Connection: keep-alive
tan solo puedo acceder a los valores delos response headers, pero no a los de Redirect.

Alguien puede indicarme como se hace o por donde encauzar mi busqueda?

gracias

Última edición por gerion_angel; 31/07/2013 a las 05:25 Razón: titulo poco descriptivo