Hi,

I have the following Ajax call

 new Ajax.Request('download.php?id=48', {
       method: 'get',
       on302: function(resp){
               $('dl').innerHTML=resp.getHeader('Location');
                alert(resp.getHeader('Location'));
         },
        onSuccess: function(resp){
               $('dl').innerHTML=resp.responseText;
         }
 });

The problem is that download.php does a 302 Temporary Redirect, by
using this php: header("Location: http://domain.com/this.zip";)
Prototype correctly calls on302 function, however the Location header
is not found in the headers.  If you make the request otherwise by
using your browser, it works perfectly.

This could be a bug or a missing feature.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to