title: How to get http headers with current drive.url of selenium?
body: <p>I'm trying to get Http headers of a PDF viewer page, for can get the pdf file and read it. I'm using the following lines of code:</p>
  
  <pre><code>using (WebClient client = new WebClient()){
  client.OpenRead(driver.Url);
  string header_contentDisposition = client.ResponseHeaders["content-disposition"];
  string filename = new ContentDisposition(header_contentDisposition).FileName;
   }
  </code></pre>
  
  <p>But the server is not finding the source, I'm  trying this too:</p>
  
  <pre><code>var disposition= System.Web.HttpContext.Current.Request.Headers["Content-Disposition"];
  </code></pre>
  
  <p>But Current is null. Any advises or links for understand better http headers, please. Thanks in advance. </p>