{"head":"6a9937d2166023c370489d8e6654d01f6ec52f44","size":1,"push_id":47393503,"ref":"refs/heads/master","commits":[{"sha":"6a9937d2166023c370489d8e6654d01f6ec52f44","author":{"name":"Martin","email":"2497466e10e5d910545fffac0521674a0f41f8e2@hotmail.com"},"url":"https://api.github.com/repos/QuickJack/mono/commits/6a9937d2166023c370489d8e6654d01f6ec52f44","message":"Behaviour of using proxies in WebClient is different compared to .NET\r\n\r\n(1) Consider the following example code:\r\n\r\n\tWebClient client=new WebClient();\r\n\r\nIf you examine the client.Proxy property when running this code in .NET you will see, that the Proxy property reflects the current system proxy settings. However, Mono initializes the Proxy property in OpenRead()\r\n\r\n(2) Mono's implementation of the WebClient.Proxy property described in (1) has a disadvantage. To understand that, consider der following example code:\r\n\t\r\n\tWebClient client=new WebClient();\r\n\t\r\n\tclient.Proxy=null;\r\n\r\nExplicitely setting the Proxy property to null ensures that .NET does not use any proxies when calling further methods of the client object. My patch provides exactly this functionality for Mono's WebClient when using the http or ftp protocol. This functionality can be very interesting for a lot of scenarios.\r\n\r"}],"legacy":{"head":"6a9937d2166023c370489d8e6654d01f6ec52f44","size":1,"push_id":47393503,"shas":[["6a9937d2166023c370489d8e6654d01f6ec52f44","test051102@hotmail.com","Behaviour of using proxies in WebClient is different compared to .NET\r\n\r\n(1) Consider the following example code:\r\n\r\n\tWebClient client=new WebClient();\r\n\r\nIf you examine the client.Proxy property when running this code in .NET you will see, that the Proxy property reflects the current system proxy settings. However, Mono initializes the Proxy property in OpenRead()\r\n\r\n(2) Mono's implementation of the WebClient.Proxy property described in (1) has a disadvantage. To understand that, consider der following example code:\r\n\t\r\n\tWebClient client=new WebClient();\r\n\t\r\n\tclient.Proxy=null;\r\n\r\nExplicitely setting the Proxy property to null ensures that .NET does not use any proxies when calling further methods of the client object. My patch provides exactly this functionality for Mono's WebClient when using the http or ftp protocol. This functionality can be very interesting for a lot of scenarios.\r\n\r","Martin"]],"ref":"refs/heads/master"}}