def submit_solution(c_url, email_address, ch_resp, sid, output, source, state, ch_aux):
    source_64_msg = email.message.Message()
    source_64_msg.set_payload(source)
    email.encoders.encode_base64(source_64_msg)

    output_64_msg = email.message.Message()
    output_64_msg.set_payload(output)
    email.encoders.encode_base64(output_64_msg)
    values = { 
        'assignment_part_sid': sid,
        'email_address': email_address,
        # 'submission' : output, \
        'submission': output_64_msg.get_payload(),
        # 'submission_aux' : source, \
        'submission_aux': source_64_msg.get_payload(),
        'challenge_response': ch_resp,
        'state': state,
        }
    url = submit_url(c_url)
    data = urllib.urlencode(values)
    req = urllib2.Request(url, data)
    response = urllib2.urlopen(req)
    string = response.read().strip()
    result = 0
    return (result, string)
Submits a solution to the server. Returns (result, string).
dataset/ETHPy150Open discreteoptimization/setcover/submit.py/submit_solution