Question : sendAndLoad onHTTPStatus issue

Hi,

I have been having an issue of Flash not returning the correct HTTP status when it's calling certain ASP pages (using sendAndLoad onHTTPStatus). It is still done in AS2. Using "Fiddler HTTP debugging" it's clear that these ASP files sometimes returned a 407 Error (Authentication Required, access denied) but for some reason my Flash application always returns 200 OK.

The code is attached. Could you see anything wrong in the code? Or ways to improve it to get an accurate reading?

Thank you in advance!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
checkObjStatus = new LoadVars();
checkObjStatus.onHTTPStatus = function(httpStatus:Number) {
   this.httpStatus = httpStatus;
   if(httpStatus < 400 && httpStatus != 0) {	
      trace(httpStatus);
   } else if(httpStatus >= 400 || httpStatus == 0) {
      trace("PROBLEM " + httpStatus);		
   }
}
checkObjStatus.sendAndLoad("someaspfile.asp",checkObjStatus,"GET");

Answer : sendAndLoad onHTTPStatus issue

I still haven't got a solution for this, but I will close this question anyway.
Random Solutions  
 
programming4us programming4us