Creates a request to Uri and returns the response from the server.

C# | Visual Basic | Visual C++ |
protected virtual HttpWebResponse Request( Uri uri )
Protected Overridable Function Request ( _ uri As Uri _ ) As HttpWebResponse
protected: virtual HttpWebResponse^ Request( Uri^ uri )

- uri (Uri)

Uses authentication settings from Configuration. Sets the FileType for this file.

Exception | Condition |
---|---|
ProtocolViolationException if Uri protocol is invalid | |
WebException if a web exception occurs, or if redirection to error page occurs |