all you have to do is check this attribute:
nsIHttpChannel::requestSucceeded

darin


Christian Biesinger wrote:
Arturo Colorado Gar�n wrote:

Thanks Darin, I've already done it and it works (and it's pretty easy to
implement). I'm getting the last response status and comparing if its value
is between 400 and 599. Is this check safe or there could be some cases
where this check is true but the URL should still be considered valid?


Wouldn't it be better to check if the first digit is 2? (status/100 == 2). IIRC, all 2xx codes are success.





Reply via email to