ode):
      v = v.encode(&quot;utf-8&quot;)
    k = urllib.quote(k)
    v = urllib.quote(v)
    l.append(k + &quot;=&quot; + v)
  return &quot;&amp;&quot;.join(l)


def make_req(service, params=None):
  url = &quot;http://www.crakobon.fr/dispatch.php?%s&amp;service=%s&amp;alea=%s&quot; % (h['Cookie'], service, str(random.randrange(2000,11000)))
  if service == &quot;init&quot;:
    method = &quot;GET&quot;
    response, content = http.request(url, 'GET', headers=h)
  else:
    method = &quot;POST&quot;
    