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.
Removes a custom Web request module from the application.
<configuration>
<system.net>
<webRequestModules>
<remove>
<remove
prefix="URI prefix"
/>
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
prefix |
The URI prefix for requests handled by this Web request module. |
None.
Element | Description |
---|---|
webRequestModules | Specifies modules to use to request information from network hosts. |
The remove
element removes the registered Web request module for the specified URI prefix.
The value for the prefix
attribute should be the leading characters of a valid URI -- for example, "http
", or "http://www.contoso.com
".
This element can be used in the application configuration file or the machine configuration file (Machine.config).
The following example removes the existing Web request module for HTTP and then registers a new custom Web request module for HTTP requests to www.contoso.com
.
<configuration>
<system.net>
<webRequestModules>
<remove prefix="http" />
<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