title: Sending "User-agent" using Requests library in Python
body: <p>I want to send a value for <code>"User-agent"</code> while requesting a webpage using Python Requests.  I am not sure is if it is okay to send this as a part of the header, as in the code below:</p>
  
  <pre><code>debug = {'verbose': sys.stderr}
  user_agent = {'User-agent': 'Mozilla/5.0'}
  response  = requests.get(url, headers = user_agent, config=debug)
  </code></pre>
  
  <p>The debug information isn't showing the headers being sent during the request.</p>
  
  <p>Is it acceptable to send this information in the header?  If not, how can I send it?</p>