Hello!

 

I'm parsing 302 with, most of the time, multi contacts returned.

I do it like this:

get_redirects("*");

t_load_contacts();

and, finally, a test on !t_next_contacts().

 

This test fails when only one contact is present in 302.

 

Is it the expected behaviour?

From the documentation I understand that following t_load_contacts we must use t_next_contacts.

If so, I believe that I shouldn't exit on !t_next_contacts() and do an additional test to see if there is, at least, one attempt to do toward the only contact returned?

 

Thanks for your feedback.

 

Regards,

 

Igor.


Sans virus.www.avast.com