Saturday, April 29, 2017

redirection loops http

I can't even begin to describe the number of times "  I've see HTTP 30X redirections loops from  poor  web-service hosting practices"

Think of a loop like that of this poor creature running in the circular cage




In most browser they will give up  a simple fatal error after XXX amount of loops-tries.

Various browser handle loops differently  but they always clearly  tell you a loop exists.


e.g  ( opera and safari )








cUrl will quickly show you redirect loops by using a the verbose output and  grep'ing for "Location:" header. If you see the same  Location: header more than 1 once for a http.get, than you have a loop condition.


e.g





It critical to test http.redirect and ensure you don't write a loop or create redirection dependency.






Ken  Felix




NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o 
        /  \

No comments:

Post a Comment