def send(self):
scheme, location, path, query, _ = urlparse.urlsplit(self.url)<EOL>assert scheme in ("<STR_LIT:http>", "<STR_LIT>"), "<STR_LIT>" % scheme<EOL>content_type, body = self._encode_multipart_formdata()<EOL>handle = getattr(httplib, scheme.upper() + "<STR_LIT>")(location)<EOL>if self.mock_http:<EOL><INDENT>handle.sock = parts.Bunch(<EOL>sendall=lambda x: sys.stdout.write(fmt.to_utf8(<EOL>'<STR_LIT>'.join((c if <NUM_LIT:32> <= ord(c) < <NUM_LIT> or ord(c) in (<NUM_LIT:8>, <NUM_LIT:10>) else u'<STR_LIT>' % ord(c)) for c in x)<EOL>)),<EOL>makefile=lambda dummy, _: StringIO.StringIO("<STR_LIT:\r\n>".join((<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>))),<EOL>close=lambda: None,<EOL>)<EOL><DEDENT>handle.putrequest('<STR_LIT:POST>', urlparse.urlunsplit(('<STR_LIT>', '<STR_LIT>', path, query, '<STR_LIT>')))<EOL>handle.putheader('<STR_LIT:Content-Type>', content_type)<EOL>handle.putheader('<STR_LIT>', str(len(body)))<EOL>for key, val in self.headers.items():<EOL><INDENT>handle.putheader(key, val)<EOL><DEDENT>handle.endheaders()<EOL>handle.send(body)<EOL>return handle.getresponse()<EOL>
Post fields and files to an HTTP server as multipart/form-data.
            Return the server's response.