req.Proxy=null;

或者在app.config

<configuration>  
  <system.net>  
    <defaultProxy  
        enabled="false"  
        useDefaultCredentials="false" >  
    </defaultProxy>  
  </system.net>  
</configuration>

标签: C#