def open_raw(self, page, parms=None, payload=None, HTTPrequest=None, payload_type='<STR_LIT:application/json>' ):
if not parms:<EOL><INDENT>parms={}<EOL><DEDENT>if self._key and not self.key_in_header:<EOL><INDENT>parms['<STR_LIT:key>'] = self._key<EOL><DEDENT>urldata = '<STR_LIT>'<EOL>if parms:<EOL><INDENT>urldata = '<STR_LIT:?>' + urllib.parse.urlencode( parms )<EOL><DEDENT>fullUrl = self._url + page<EOL>if self.debug:<EOL><INDENT>print(fullUrl + urldata)<EOL><DEDENT>try:<EOL><INDENT>self._opener.open( fullUrl )<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>if HTTPrequest:<EOL><INDENT>request = HTTPrequest( fullUrl + urldata )<EOL><DEDENT>else:<EOL><INDENT>request = urllib.request.Request( fullUrl + urldata )<EOL><DEDENT>if self._key and self.key_in_header:<EOL><INDENT>request.add_header('<STR_LIT>', self._key)<EOL><DEDENT>if self.impersonate and self.impersonation_supported:<EOL><INDENT>request.add_header('<STR_LIT>', self.impersonate)<EOL><DEDENT>if payload:<EOL><INDENT>request.add_header('<STR_LIT:Content-Type>', payload_type)<EOL>response = urllib.request.urlopen( request, payload )<EOL><DEDENT>else:<EOL><INDENT>response = urllib.request.urlopen( request )<EOL><DEDENT>return response<EOL>
Opens a page from the server with optional XML.  Returns a response file-like object