(X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0'}

http = httplib2.Http()
response, content = http.request(&quot;http://www.crakobon.fr/&quot;, 'GET', headers=h)
h['Cookie'] = response['set-cookie'].split(&quot;;&quot;)[0]
print &quot;Got session cookie&quot;, h[&quot;Cookie&quot;]

h[&quot;Content-Type&quot;] = &quot;application/x-www-form-urlencoded&quot;

def httpurl(d):
  l = []
  for k, v in d.items():
    if isinstance(k, unicode):
      k = k.encode(&quot;utf-8&quot;)
    if isinstance(v, unic