title: Invoke-WebRequest with SSL and Proxy Autentication
body: <p>I've to make a web request to an HTTPS URL (SSL3 protocol) on my proxy network.</p>
  
  <p>My code is this:</p>
  
  <pre><code>$UserName = "domain\user"
  $SecurePassword = ("YourPassword" | ConvertTo-SecureString -AsPlainText -Force)
  
  [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
  
  $Credentials = (New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword)
  
  [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
  
  Invoke-WebRequest -Method Get -Uri "https://www.google.it" -Proxy "http://proxy:8080" -ProxyCredential $Credentials
  </code></pre>
  
  <p>Note that the URL https://www.google.it is an example. I've to do it with an HTTPS URL with protocol SSL3 (it's an old standard).</p>
  
  <p>Output of my web request is:</p>
  
  <blockquote>
    <p>Invoke-WebRequest : The server committed a protocol violation. Section=ResponseStatusLine</p>
  </blockquote>
  
  <p>Could you help me please? I don't understand where I'm wrong.</p>