  req = &quot;perso=%s&amp;var%%5Fcoup=%s&amp;action=insert&quot; % (personnage, coup)
        cnx.request(&quot;POST&quot;, &quot;/bricabrac/coup.php&quot;, req, headers = h)
        resp = cnx.getresponse()
        data = resp.read()
        print &quot;Round&quot;, coup, &quot;:&quot;, data.split(&quot;=&quot;)[1]
        cnx.close()

        time.sleep(5.5)

        # Gagnant, perdant ou nul ?
        r = random.choice(&quot;GGGNNP&quot;)
        print msg[r]
        d = {'timestamp' : timestamp, 'perso