title: HTTP request not going through proxy
body: <p>I have written this code to fire a http request through a proxy.
  But the request does not seem to use proxy. Even though I give a wrong proxy, it is returning OK.</p>
  
  <p>Is there any way I can check, whether the HTTP request went via proxy?
  What is the issue in this code which makes it not use proxy?</p>
  
  <pre><code>sub fire_http_request_through_proxy()
  {
      my $proxy = $_;
      my $ua = LWP::UserAgent-&gt;new;
      $ENV{HTTP_PROXY} = $proxy;
      $ua-&gt;env_proxy; # initialize from environment variables
      $ua-&gt;timeout(20);
      my $response = $ua-&gt;get('http://www.google.com');
      delete $ENV{HTTP_PROXY};
      if ($response-&gt;is_success)
      {
         print $response-&gt;decoded_content . "\n";
      }
      else
      {
         die $response-&gt;status_line;
      }  
  }
  </code></pre>