HttpWebRequest Methods

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The HttpWebRequest type exposes the following members.

Methods

Name Description
Abort Cancels a request to an Internet resource. (Overrides WebRequest..::.Abort()()().)
BeginGetRequestStream Begins an asynchronous request for a Stream object to use to write data. (Overrides WebRequest..::.BeginGetRequestStream(AsyncCallback, Object).)
BeginGetResponse Begins an asynchronous request to an Internet resource. (Overrides WebRequest..::.BeginGetResponse(AsyncCallback, Object).)
EndGetRequestStream Ends an asynchronous request for a Stream object to use to write data. (Overrides WebRequest..::.EndGetRequestStream(IAsyncResult).)
EndGetResponse Ends an asynchronous request to an Internet resource. (Overrides WebRequest..::.EndGetResponse(IAsyncResult).)
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Releases the resources held by the current HttpWebRequest instance. (Overrides Object..::.Finalize()()().)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetRequestStreamAsync When overridden in a descendent class, returns a Stream for writing data to the Internet resource as an asynchronous operation. (Overrides WebRequest..::.GetRequestStreamAsync()()().)
GetResponseAsync When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation. (Overrides WebRequest..::.GetResponseAsync()()().)
GetType Gets the Type of the current instance. (Inherited from Object.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Extension Methods

Name Description
GetCurrentNetworkInterface Gets all available information about the network interface that corresponds to a web request. (Defined by WebRequestExtensions.)
SetNetworkPreference Sets the preference for a web request to use either cellular or non-cellular technology. (Defined by WebRequestExtensions.)
SetNetworkRequirement Sets the requirement for a web request to use either cellular or non-cellular technology. (Defined by WebRequestExtensions.)

Top

See Also

Reference

HttpWebRequest Class

System.Net Namespace