C++ API enhancement - redirect support.