title: Get sessionId using request Python
body: <p>I'm trying to get the sessionId, so i can do other requests.<br>
  So i looked in the Firefox Network monitor (Ctrl+Shift+Q) and saw this:</p>
  
  <p><a href="https://i.stack.imgur.com/QmAuj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QmAuj.png" alt="enter image description here"></a></p>
  
  <p>So i wondered how i could do the request in python 3 and tried things like this:  </p>
  
  <pre><code>import requests
  payload = {'uid' : 'username',
        'pwd' : 'password'}
  
  r = requests.get(r'http://192.168.2.114(cgi-bin/wwwugw.cgi', data=payload)
  
  print r.text
  </code></pre>
  
  <p>But I always get "Response [400]".<br>
  If the request is correct, I should get something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/ILlCY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ILlCY.png" alt="enter image description here"></a></p>
  
  <p>Thanks<br>
  Alex</p>