in reply to Help needed on HTTP redirects

You can use LWP::Simple::getprint("your page B") to get the return code, actually to check whether it's successful, simply do:
is_success(getprint("http://your_page_B"))
You can then send a redirect.