Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Specifies modules to use to request information from network hosts.
<configuration>
<system.net>
<webRequestModules>
<webRequestModules>
</webRequestModules>
The following sections describe attributes, child elements, and parent elements.
None.
Element | Description |
---|---|
add | Adds a custom Web request module to the application. |
clear | Removes all registered Web request modules from the application. |
remove | Removes a custom Web request module from the application. |
Element | Description |
---|---|
system.net | Contains settings that specify how the .NET Framework connects to the network. |
The webRequestModules
element registers descendants of the WebRequest class to handle information requests to network hosts. Web request modules must implement the IWebRequestCreate interface.
The .NET Framework includes Web request modules for URIs that begin with http://
, https://
, and file://
. You can override the default modules only by registering a custom module in the configuration file.
This element can be used in the application configuration file or the machine configuration file (Machine.config).
The following example registers the default HTTP module. You should replace the values for Version and PublicKeyToken with the correct values for the specified module.
<configuration>
<system.net>
<webRequestModules>
<add prefix="http"
type="System.Net.HttpRequestCreator, System, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
</webRequestModules>
</system.net>
</configuration>
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now