def _parse_response(resp):
<EOL>try:<EOL><INDENT>headers, payload = resp.split("<STR_LIT>", <NUM_LIT:1>)<EOL><DEDENT>except (TypeError, ValueError) as exc:<EOL><INDENT>raise SCGIException("<STR_LIT>" % (len(resp), exc,))<EOL><DEDENT>headers = _parse_headers(headers)<EOL>clen = headers.get("<STR_LIT>")<EOL>if clen is not None:<EOL><INDENT>assert len(payload) == int(clen)<EOL><DEDENT>return payload, headers<EOL>
Get xmlrpc response from scgi response