C++ Version of python-url-refresh