changed the _buildHttpRequest method