Port to modified HttpRequest smart-proxy API

The API was modified in smart-proxy commit
a53d835ac9a6c0de4fb1c0d20873202ee8220168.