Support X-Forwarded-For header in example code