title: How to know if my Custom HTTP headers are being passed?
body: <p>So, I have been struggling with passing custom HTTP header for some time now.</p>
  
  <p>I am creating a script (Python) to Open a URL with Custom headers like </p>
  
  <pre><code>    {'Referer': 'https://google.com', 'X-Forwarded-For': '47.29.76.109', 
  
  'User-Agent': 'Mozilla/5.0 (Linux; Android 7.1.1; CPH1723 Build/N6F26Q; 
  
  wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 
  
  Mobile Safari/537.36', 'existing_proxy_port_to_use': '8090'}
  </code></pre>
  
  <p>I have been using BrowserMob-Proxy for this but I am unable to see the effect when I try checking Network field in Inspect of Google Chrome.</p>
  
  <p>CODE: </p>
  
  <pre><code>def automation():
      headers = pd.read_excel('Database/header.xlsx')
      for i in range(0,headers.shape[0]):
          dict = {}
          header = headers.loc[i]
          dict['Referer'] = header['Referrer']
          dict[header['Option']] = header['IP']
          dict['User-Agent'] = header['USERAGENT']
          dict['existing_proxy_port_to_use'] = "8090"
          print(dict)
  
          URL = 'xyz'
          data = pd.read_csv('Database/data.csv')
          server = Server(path="./browsermob-proxy/bin/browsermob-proxy", options=dict)
          server.start()
          proxy = server.create_proxy()
          chrome_options = webdriver.ChromeOptions()
          chrome_options.add_argument("--proxy-server={0}".format(proxy.proxy)) #Configure chrome options
          driver = webdriver.Chrome(chrome_options=chrome_options,executable_path='/home/.../chromedriver')
          proxy.new_har("google")
          for j in range(0,data.shape[0]):
              datum = data.loc[j]
              print(datum)
              driver.get(URL)
          driver.quit()
          server.stop()   
      return None    
  
  automation()
  
  </code></pre>
  
  <p>I am reading these Parameters from header file and using Selenium to fill the Google Form.</p>
  
  <p>So, Please help me in knowing how to pass the headers correctly and how to know if they are working.</p>