Sample code to retrieve a web page
(cherry picked from commit 2ac6f3a)