Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
How to: Typecast a WebRequest to Access Protocol Specific Properties

How to: Typecast a WebRequest to Access Protocol Specific Properties 

This example shows how to typecast a WebRequest so that you can access protocol specific properties.

Example

HttpWebRequest httpreq = 
   (HttpWebRequest) WebRequest.Create("http://www.contoso.com/");

See Also

Community Additions

ADD
Show:
© 2015 Microsoft