def _get_request(self, request_url, request_method, **params):
if request_method == '<STR_LIT:GET>':<EOL><INDENT>if params:<EOL><INDENT>request_url += '<STR_LIT>' % urlencode(params)<EOL><DEDENT>request = Request(request_url)<EOL><DEDENT>elif request_method == '<STR_LIT:POST>':<EOL><INDENT>request = Request(request_url, urlencode(params, doseq=<NUM_LIT:1>))<EOL><DEDENT>return request<EOL>
Return a Request object that has the GET parameters
attached to the url or the POST data attached to the object.