title: urllib2 returns a different page the browser does?
body: <p>I'm trying to scrape a page (my router's admin page) but the device seems to be serving a different page to urllib2 than to my browser. has anyone found this before? How can I get around it?</p>
  
  <p>this the code I'm using:</p>
  
  <pre><code>&gt;&gt;&gt; from BeautifulSoup import BeautifulSoup
  &gt;&gt;&gt; import urllib2
  &gt;&gt;&gt; page = urllib2.urlopen("http://192.168.1.254/index.cgi?active_page=9133&amp;active_page_str=page_bt_home&amp;req_mode=0&amp;mimic_button_field=btn_tab_goto:+9133..&amp;request_id=36590071&amp;button_value=9133")
  &gt;&gt;&gt; soup = BeautifulSoup(page)
  &gt;&gt;&gt; soup.prettify()
  </code></pre>
  
  <p>(html output is removed by markdown)</p>