CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::Net::HttpWebRequest Class Reference

Represents the HTTP web request. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...

#include <http_web_request.h>

Inherits System::Net::WebRequest.

Public Member Functions

void set_ProtocolVersion (System::Version version)
 Sets the version of the HTTP. More...
 
void set_Timeout (int timeout) override
 Sets an amount of time in milliseconds after which the request will be timed out. More...
 
void set_PreAuthenticate (bool value) override
 Sets a value that indicates if the request must be pre-authenticated. More...
 
void set_ContentLength (int64_t length) override
 Sets the number of bytes of the request data to sent. More...
 
String get_Accept ()
 Gets the 'Accept' HTTP header value. More...
 
void set_Accept (String value)
 Sets the 'Accept' HTTP header value. More...
 
virtual bool get_AllowReadStreamBuffering ()
 Gets a value indicates if the data received from the resource must be buffered. More...
 
virtual void set_AllowReadStreamBuffering (bool value)
 Sets a value indicates if the data received from the resource must be buffered. More...
 
String get_ContentType () override
 Gets the MIME type of the request. More...
 
void set_ContentType (String value) override
 Sets the MIME type of the request. More...
 
int32_t get_ContinueTimeout ()
 Gets a timeout to wait until the 100-Continue status code is received. More...
 
void set_ContinueTimeout (int32_t value)
 Sets a timeout to wait until the 100-Continue status code is received. More...
 
virtual System::SharedPtr< System::Net::CookieContainerget_CookieContainer ()
 Gets a cookie container associated with the current web request. More...
 
virtual void set_CookieContainer (System::SharedPtr< System::Net::CookieContainer > value)
 Sets a cookie container associated with the current web request. More...
 
System::SharedPtr< ICredentialsget_Credentials () override
 Gets authentication information that is associated with the current request. More...
 
void set_Credentials (System::SharedPtr< ICredentials > value) override
 Sets authentication information that is associated with the current request. More...
 
virtual bool get_HaveResponse ()
 Returns a value that indicates if a response is received. More...
 
System::SharedPtr< WebHeaderCollectionget_Headers () override
 Gets the collection of the HTTP headers. More...
 
void set_Headers (System::SharedPtr< WebHeaderCollection > value) override
 Sets the collection of the HTTP headers. More...
 
String get_Method () override
 Gets the HTTP method. More...
 
void set_Method (String value) override
 Sets the HTTP method. More...
 
System::SharedPtr< Uriget_RequestUri () override
 Returns the request URI. More...
 
virtual bool get_SupportsCookieContainer ()
 Returns a value that indicates if the current request can use a cookie container. More...
 
bool get_UseDefaultCredentials () override
 Gets a value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property. More...
 
void set_UseDefaultCredentials (bool value) override
 Sets a value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property. More...
 
System::SharedPtr< IWebProxyget_Proxy () override
 Gets the HTTP proxy. More...
 
void set_Proxy (System::SharedPtr< IWebProxy > value) override
 Sets the HTTP proxy. More...
 
System::SharedPtr< ServicePointget_ServicePoint ()
 Returns a service point that represents the network connection to the resource. More...
 
virtual bool get_AllowAutoRedirect ()
 Gets a value that indicates if the request should follow redirections. More...
 
virtual void set_AllowAutoRedirect (bool value)
 Sets a value that indicates if the request should follow redirections. More...
 
virtual int get_MaximumAutomaticRedirections ()
 Gets a maximum number of allowed redirections. More...
 
virtual void set_MaximumAutomaticRedirections (int value)
 Sets a maximum number of allowed redirections. More...
 
 HttpWebRequest (System::SharedPtr< Uri > uri)
 Constructs a new instance. More...
 
System::SharedPtr< WebResponseGetResponse () override
 Returns the web response associated with the current web request. More...
 
void Abort () override
 Aborts the current request. More...
 
System::SharedPtr< System::IO::StreamGetRequestStream () override
 Returns the stream for writing data to the resource. More...
 
System::SharedPtr< IAsyncResultBeginGetRequestStream (AsyncCallback callback, System::SharedPtr< Object > state) override
 Initiates an asynchronous operation to get a stream for writing data to the resource. More...
 
System::SharedPtr< IO::StreamEndGetRequestStream (System::SharedPtr< IAsyncResult > asyncResult) override
 Waits until the specified asynchronous operation to get a stream completes. More...
 
System::SharedPtr< IAsyncResultBeginGetResponse (AsyncCallback callback, System::SharedPtr< Object > state) override
 Initiates an asynchronous request for the resource. More...
 
System::SharedPtr< WebResponseEndGetResponse (System::SharedPtr< IAsyncResult > asyncResult) override
 Waits until the specified asynchronous request for the resource completes. More...
 
virtual bool get_SendChunked ()
 Gets a value that indicates if data must be sent in segments. More...
 
virtual void set_SendChunked (bool value)
 Sets a value that indicates if data must be sent in segments. More...
 
virtual bool get_AllowWriteStreamBuffering ()
 Gets a value that indicates if buffering is enabled for sending data. More...
 
virtual void set_AllowWriteStreamBuffering (bool value)
 Sets a value that indicates if buffering is enabled for sending data. More...
 
virtual bool get_KeepAlive ()
 Gets a value that indicates if the current request must contain the 'Keep-Alive' header. More...
 
virtual void set_KeepAlive (bool value)
 Sets a value that indicates if the current request must contain the 'Keep-Alive' header. More...
 
virtual System::SharedPtr< System::Security::Cryptography::X509Certificates::X509CertificateCollectionget_ClientCertificates ()
 Gets the collection of the certificates that are associated with the current request. More...
 
virtual void set_ClientCertificates (System::SharedPtr< System::Security::Cryptography::X509Certificates::X509CertificateCollection > value)
 Sets the collection of the certificates that are associated with the current request. More...
 
virtual System::String get_UserAgent ()
 Gets a value of the 'User-Agent' header. More...
 
virtual void set_UserAgent (System::String value)
 Sets a value of the 'User-Agent' header. More...
 
int64_t get_ContentLength () override
 Gets the number of bytes of the request data to sent. More...
 
bool get_PreAuthenticate () override
 Gets a value that indicates if the request must be pre-authenticated. More...
 
int32_t get_Timeout () override
 Gets an amount of time in milliseconds after which the request will be timed out. More...
 
virtual void AddRange (int32_t range)
 Adds the 'Range' header to the current request. More...
 
virtual void AddRange (System::String rangeSpecifier, int32_t from, int32_t to)
 Adds the 'Range' header to the current request. More...
 
virtual System::String get_Referer ()
 Gets a value of the 'Referer' header. More...
 
virtual void set_Referer (System::String value)
 Sets a value of the 'Referer' header. More...
 
System::String get_ConnectionGroupName () override
 Gets the name of the connection group. More...
 
void set_ConnectionGroupName (System::String value) override
 Sets the name of the connection group. More...
 
- Public Member Functions inherited from System::Net::WebRequest
virtual String get_Method ()=0
 Gets the HTTP method. More...
 
virtual void set_Method (String value)=0
 Sets the HTTP method. More...
 
virtual System::SharedPtr< Uriget_RequestUri ()=0
 Returns the request URI. More...
 
virtual System::SharedPtr< WebHeaderCollectionget_Headers ()=0
 Gets the collection of the HTTP headers. More...
 
virtual void set_Headers (System::SharedPtr< WebHeaderCollection > value)=0
 Sets the collection of the HTTP headers. More...
 
virtual String get_ContentType ()=0
 Gets the MIME type of the request. More...
 
virtual void set_ContentType (String value)=0
 Sets the MIME type of the request. More...
 
virtual System::SharedPtr< ICredentialsget_Credentials ()
 Gets authentication information that is associated with the current request. More...
 
virtual void set_Credentials (System::SharedPtr< ICredentials > value)
 Sets authentication information that is associated with the current request. More...
 
virtual bool get_UseDefaultCredentials ()
 Gets a value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property. More...
 
virtual void set_UseDefaultCredentials (bool value)
 Sets a value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property. More...
 
virtual System::SharedPtr< IWebProxyget_Proxy ()
 Gets the HTTP proxy. More...
 
virtual void set_Proxy (System::SharedPtr< IWebProxy > value)
 Sets the HTTP proxy. More...
 
virtual System::SharedPtr< IAsyncResultBeginGetResponse (AsyncCallback callback, System::SharedPtr< Object > state)=0
 Initiates an asynchronous request for the resource. More...
 
virtual System::SharedPtr< WebResponseEndGetResponse (System::SharedPtr< IAsyncResult > asyncResult)=0
 Waits until the specified asynchronous request for the resource completes. More...
 
virtual System::SharedPtr< IAsyncResultBeginGetRequestStream (AsyncCallback callback, System::SharedPtr< Object > state)=0
 Initiates an asynchronous operation to get a stream for writing data to the resource. More...
 
virtual System::SharedPtr< IO::StreamEndGetRequestStream (System::SharedPtr< IAsyncResult > asyncResult)=0
 Waits until the specified asynchronous operation to get a stream completes. More...
 
virtual void Abort ()=0
 Aborts the current request. More...
 
virtual int64_t get_ContentLength ()
 Gets the number of bytes of the request data to sent. More...
 
virtual void set_ContentLength (int64_t value)
 Sets the number of bytes of the request data to sent. More...
 
virtual System::SharedPtr< System::Net::Cache::RequestCachePolicyget_CachePolicy ()
 Gets the cache policy. More...
 
virtual void set_CachePolicy (System::SharedPtr< System::Net::Cache::RequestCachePolicy > value)
 Sets the cache policy. More...
 
virtual System::String get_ConnectionGroupName ()
 Gets the name of the connection group. More...
 
virtual void set_ConnectionGroupName (System::String value)
 Sets the name of the connection group. More...
 
virtual bool get_PreAuthenticate ()
 Gets a value that indicates if the request must be pre-authenticated. More...
 
virtual void set_PreAuthenticate (bool value)
 Sets a value that indicates if the request must be pre-authenticated. More...
 
virtual int32_t get_Timeout ()
 Gets an amount of time in milliseconds after which the request will be timed out. More...
 
virtual void set_Timeout (int32_t timeout)
 Sets an amount of time in milliseconds after which the request will be timed out. More...
 
virtual System::SharedPtr< WebResponseGetResponse ()
 Returns the web response associated with the current web request. More...
 
virtual System::SharedPtr< System::IO::StreamGetRequestStream ()
 Returns the stream for writing data to the resource. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Net::WebRequest
static System::SharedPtr< Collections::Generic::List< System::SharedPtr< WebRequest::WebRequestPrefixElement > > > get_PrefixList ()
 Gets the prefix list. More...
 
static void set_PrefixList (System::SharedPtr< Collections::Generic::List< System::SharedPtr< WebRequest::WebRequestPrefixElement > > > value)
 Sets the prefix list. More...
 
static System::SharedPtr< IWebProxyget_DefaultWebProxy ()
 Gets the global HTTP proxy. More...
 
static void set_DefaultWebProxy (System::SharedPtr< IWebProxy > value)
 Sets the global HTTP proxy. More...
 
static System::SharedPtr< WebRequestCreate (String requestUriString)
 Creates a new instance of the WebRequest class using the specified URI. More...
 
static System::SharedPtr< WebRequestCreate (System::SharedPtr< Uri > requestUri)
 Creates a new instance of the WebRequest class using the specified URI. More...
 
static System::SharedPtr< WebRequestCreateDefault (System::SharedPtr< Uri > requestUri)
 Creates a WebRequest descendant for the specified URI scheme. More...
 
static System::SharedPtr< HttpWebRequestCreateHttp (String requestUriString)
 Creates a new instance of the WebRequest class using the specified URI. More...
 
static System::SharedPtr< HttpWebRequestCreateHttp (System::SharedPtr< Uri > requestUri)
 Creates a new instance of the WebRequest class using the specified URI. More...
 
static bool RegisterPrefix (String prefix, System::SharedPtr< IWebRequestCreate > creator)
 Registers the WebRequest descendant for the specified URI. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
- Protected Member Functions inherited from System::Net::WebRequest
 WebRequest ()
 Constructs a new instance. More...
 

Detailed Description

Represents the HTTP web request. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Constructor & Destructor Documentation

◆ HttpWebRequest()

System::Net::HttpWebRequest::HttpWebRequest ( System::SharedPtr< Uri uri)

Constructs a new instance.

Parameters
uriThe resource's URI.

Member Function Documentation

◆ Abort()

void System::Net::HttpWebRequest::Abort ( )
overridevirtual

Aborts the current request.

Implements System::Net::WebRequest.

◆ AddRange() [1/2]

virtual void System::Net::HttpWebRequest::AddRange ( int32_t  range)
virtual

Adds the 'Range' header to the current request.

Parameters
rangeThe beginning or the end of the request range.

◆ AddRange() [2/2]

virtual void System::Net::HttpWebRequest::AddRange ( System::String  rangeSpecifier,
int32_t  from,
int32_t  to 
)
virtual

Adds the 'Range' header to the current request.

Parameters
rangeSpecifierThe unit in which ranges are specified.
fromThe beginning of the request range.
toThe end of the request range.

◆ BeginGetRequestStream()

System::SharedPtr< IAsyncResult > System::Net::HttpWebRequest::BeginGetRequestStream ( AsyncCallback  callback,
System::SharedPtr< Object state 
)
overridevirtual

Initiates an asynchronous operation to get a stream for writing data to the resource.

Parameters
callbackA callback to be called when the operation completes.
stateUser-provided data used to uniquely identify each asynchronous operation.
Returns
An IAsyncResult object representing the initiated asynchronous operation.

Implements System::Net::WebRequest.

◆ BeginGetResponse()

System::SharedPtr< IAsyncResult > System::Net::HttpWebRequest::BeginGetResponse ( AsyncCallback  callback,
System::SharedPtr< Object state 
)
overridevirtual

Initiates an asynchronous request for the resource.

Parameters
callbackA callback to be called when the operation completes.
stateUser-provided data used to uniquely identify each asynchronous operation.
Returns
An IAsyncResult object representing the initiated asynchronous operation.

Implements System::Net::WebRequest.

◆ EndGetRequestStream()

System::SharedPtr< IO::Stream > System::Net::HttpWebRequest::EndGetRequestStream ( System::SharedPtr< IAsyncResult asyncResult)
overridevirtual

Waits until the specified asynchronous operation to get a stream completes.

Parameters
asyncResultAn IAsyncResult object that represents an asynchronous operation to get a stream.
Returns
The stream for writing data to the resource.

Implements System::Net::WebRequest.

◆ EndGetResponse()

System::SharedPtr< WebResponse > System::Net::HttpWebRequest::EndGetResponse ( System::SharedPtr< IAsyncResult asyncResult)
overridevirtual

Waits until the specified asynchronous request for the resource completes.

Parameters
asyncResultAn IAsyncResult object that represents an asynchronous request for the resource.
Returns
The web response.

Implements System::Net::WebRequest.

◆ get_Accept()

String System::Net::HttpWebRequest::get_Accept ( )

Gets the 'Accept' HTTP header value.

Returns
The 'Accept' HTTP header value.

◆ get_AllowAutoRedirect()

virtual bool System::Net::HttpWebRequest::get_AllowAutoRedirect ( )
virtual

Gets a value that indicates if the request should follow redirections.

Returns
A value that indicates if the request should follow redirections.

◆ get_AllowReadStreamBuffering()

virtual bool System::Net::HttpWebRequest::get_AllowReadStreamBuffering ( )
virtual

Gets a value indicates if the data received from the resource must be buffered.

Returns
A value indicates if the data received from the resource must be buffered.

◆ get_AllowWriteStreamBuffering()

virtual bool System::Net::HttpWebRequest::get_AllowWriteStreamBuffering ( )
virtual

Gets a value that indicates if buffering is enabled for sending data.

Returns
A value that indicates if buffering is enabled for sending data.

◆ get_ClientCertificates()

virtual System::SharedPtr< System::Security::Cryptography::X509Certificates::X509CertificateCollection > System::Net::HttpWebRequest::get_ClientCertificates ( )
virtual

Gets the collection of the certificates that are associated with the current request.

Returns
The collection of the certificates that are associated with the current request.

◆ get_ConnectionGroupName()

System::String System::Net::HttpWebRequest::get_ConnectionGroupName ( )
overridevirtual

Gets the name of the connection group.

Returns
The name of the connection group.

Reimplemented from System::Net::WebRequest.

◆ get_ContentLength()

int64_t System::Net::HttpWebRequest::get_ContentLength ( )
overridevirtual

Gets the number of bytes of the request data to sent.

Returns
The number of bytes of the request data to sent.

Reimplemented from System::Net::WebRequest.

◆ get_ContentType()

String System::Net::HttpWebRequest::get_ContentType ( )
overridevirtual

Gets the MIME type of the request.

Returns
The MIME type of the request.

Implements System::Net::WebRequest.

◆ get_ContinueTimeout()

int32_t System::Net::HttpWebRequest::get_ContinueTimeout ( )

Gets a timeout to wait until the 100-Continue status code is received.

Returns
A timeout to wait until the 100-Continue status code is received.

◆ get_CookieContainer()

virtual System::SharedPtr< System::Net::CookieContainer > System::Net::HttpWebRequest::get_CookieContainer ( )
virtual

Gets a cookie container associated with the current web request.

Returns
A cookie container associated with the current web request.

◆ get_Credentials()

System::SharedPtr< ICredentials > System::Net::HttpWebRequest::get_Credentials ( )
overridevirtual

Gets authentication information that is associated with the current request.

Returns
Authentication information that is associated with the current request.

Reimplemented from System::Net::WebRequest.

◆ get_HaveResponse()

virtual bool System::Net::HttpWebRequest::get_HaveResponse ( )
virtual

Returns a value that indicates if a response is received.

Returns
A value that indicates if a response is received.

◆ get_Headers()

System::SharedPtr< WebHeaderCollection > System::Net::HttpWebRequest::get_Headers ( )
overridevirtual

Gets the collection of the HTTP headers.

Returns
The collection of the HTTP headers.

Implements System::Net::WebRequest.

◆ get_KeepAlive()

virtual bool System::Net::HttpWebRequest::get_KeepAlive ( )
virtual

Gets a value that indicates if the current request must contain the 'Keep-Alive' header.

Returns
A value that indicates if the current request must contain the 'Keep-Alive' header.

◆ get_MaximumAutomaticRedirections()

virtual int System::Net::HttpWebRequest::get_MaximumAutomaticRedirections ( )
virtual

Gets a maximum number of allowed redirections.

Returns
A maximum number of allowed redirections.

◆ get_Method()

String System::Net::HttpWebRequest::get_Method ( )
overridevirtual

Gets the HTTP method.

Returns
The HTTP method.

Implements System::Net::WebRequest.

◆ get_PreAuthenticate()

bool System::Net::HttpWebRequest::get_PreAuthenticate ( )
overridevirtual

Gets a value that indicates if the request must be pre-authenticated.

Returns
A value that indicates if the request must be pre-authenticated.

Reimplemented from System::Net::WebRequest.

◆ get_Proxy()

System::SharedPtr< IWebProxy > System::Net::HttpWebRequest::get_Proxy ( )
overridevirtual

Gets the HTTP proxy.

Returns
The HTTP proxy.

Reimplemented from System::Net::WebRequest.

◆ get_Referer()

virtual System::String System::Net::HttpWebRequest::get_Referer ( )
virtual

Gets a value of the 'Referer' header.

Returns
A value of the 'Referer' header.

◆ get_RequestUri()

System::SharedPtr< Uri > System::Net::HttpWebRequest::get_RequestUri ( )
overridevirtual

Returns the request URI.

Returns
The request URI.

Implements System::Net::WebRequest.

◆ get_SendChunked()

virtual bool System::Net::HttpWebRequest::get_SendChunked ( )
virtual

Gets a value that indicates if data must be sent in segments.

Returns
A value that indicates if data must be sent in segments.

◆ get_ServicePoint()

System::SharedPtr< ServicePoint > System::Net::HttpWebRequest::get_ServicePoint ( )

Returns a service point that represents the network connection to the resource.

Returns
A service point that represents the network connection to the resource.

◆ get_SupportsCookieContainer()

virtual bool System::Net::HttpWebRequest::get_SupportsCookieContainer ( )
virtual

Returns a value that indicates if the current request can use a cookie container.

Returns
A value that indicates if the current request can use a cookie container.

◆ get_Timeout()

int32_t System::Net::HttpWebRequest::get_Timeout ( )
overridevirtual

Gets an amount of time in milliseconds after which the request will be timed out.

Returns
An amount of time in milliseconds after which the request will be timed out.

Reimplemented from System::Net::WebRequest.

◆ get_UseDefaultCredentials()

bool System::Net::HttpWebRequest::get_UseDefaultCredentials ( )
overridevirtual

Gets a value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property.

Returns
The value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property.
Exceptions
System::NotImplementedException

Reimplemented from System::Net::WebRequest.

◆ get_UserAgent()

virtual System::String System::Net::HttpWebRequest::get_UserAgent ( )
virtual

Gets a value of the 'User-Agent' header.

Returns
A value of the 'User-Agent' header.

◆ GetRequestStream()

System::SharedPtr< System::IO::Stream > System::Net::HttpWebRequest::GetRequestStream ( )
overridevirtual

Returns the stream for writing data to the resource.

Returns
The stream for writing data to the resource.

Reimplemented from System::Net::WebRequest.

◆ GetResponse()

System::SharedPtr< WebResponse > System::Net::HttpWebRequest::GetResponse ( )
overridevirtual

Returns the web response associated with the current web request.

Returns
The web response associated with the current web request.

Reimplemented from System::Net::WebRequest.

◆ set_Accept()

void System::Net::HttpWebRequest::set_Accept ( String  value)

Sets the 'Accept' HTTP header value.

Parameters
valueThe value that must be set.

◆ set_AllowAutoRedirect()

virtual void System::Net::HttpWebRequest::set_AllowAutoRedirect ( bool  value)
virtual

Sets a value that indicates if the request should follow redirections.

Parameters
valueThe value that must be set.

◆ set_AllowReadStreamBuffering()

virtual void System::Net::HttpWebRequest::set_AllowReadStreamBuffering ( bool  value)
virtual

Sets a value indicates if the data received from the resource must be buffered.

Parameters
valueThe value that must be set.

◆ set_AllowWriteStreamBuffering()

virtual void System::Net::HttpWebRequest::set_AllowWriteStreamBuffering ( bool  value)
virtual

Sets a value that indicates if buffering is enabled for sending data.

Parameters
valueThe value that must be set.

◆ set_ClientCertificates()

virtual void System::Net::HttpWebRequest::set_ClientCertificates ( System::SharedPtr< System::Security::Cryptography::X509Certificates::X509CertificateCollection value)
virtual

Sets the collection of the certificates that are associated with the current request.

Parameters
valueThe value that must be set.

◆ set_ConnectionGroupName()

void System::Net::HttpWebRequest::set_ConnectionGroupName ( System::String  value)
overridevirtual

Sets the name of the connection group.

Parameters
valueThe name of the connection group to set.

Reimplemented from System::Net::WebRequest.

◆ set_ContentLength()

void System::Net::HttpWebRequest::set_ContentLength ( int64_t  length)
overridevirtual

Sets the number of bytes of the request data to sent.

Parameters
lengthThe number of bytes to set.

Reimplemented from System::Net::WebRequest.

◆ set_ContentType()

void System::Net::HttpWebRequest::set_ContentType ( String  value)
overridevirtual

Sets the MIME type of the request.

Parameters
valueThe MIME type to set.

Implements System::Net::WebRequest.

◆ set_ContinueTimeout()

void System::Net::HttpWebRequest::set_ContinueTimeout ( int32_t  value)

Sets a timeout to wait until the 100-Continue status code is received.

Parameters
valueThe value that must be set.

◆ set_CookieContainer()

virtual void System::Net::HttpWebRequest::set_CookieContainer ( System::SharedPtr< System::Net::CookieContainer value)
virtual

Sets a cookie container associated with the current web request.

Parameters
valueThe value that must be set.

◆ set_Credentials()

void System::Net::HttpWebRequest::set_Credentials ( System::SharedPtr< ICredentials value)
overridevirtual

Sets authentication information that is associated with the current request.

Parameters
valueAuthentication information to set.

Reimplemented from System::Net::WebRequest.

◆ set_Headers()

void System::Net::HttpWebRequest::set_Headers ( System::SharedPtr< WebHeaderCollection value)
overridevirtual

Sets the collection of the HTTP headers.

Parameters
valueThe collection of the HTTP headers to set.

Implements System::Net::WebRequest.

◆ set_KeepAlive()

virtual void System::Net::HttpWebRequest::set_KeepAlive ( bool  value)
virtual

Sets a value that indicates if the current request must contain the 'Keep-Alive' header.

Parameters
valueThe value that must be set.

◆ set_MaximumAutomaticRedirections()

virtual void System::Net::HttpWebRequest::set_MaximumAutomaticRedirections ( int  value)
virtual

Sets a maximum number of allowed redirections.

Parameters
valueThe value that must be set.

◆ set_Method()

void System::Net::HttpWebRequest::set_Method ( String  value)
overridevirtual

Sets the HTTP method.

Parameters
valueThe HTTP method to set.

Implements System::Net::WebRequest.

◆ set_PreAuthenticate()

void System::Net::HttpWebRequest::set_PreAuthenticate ( bool  value)
overridevirtual

Sets a value that indicates if the request must be pre-authenticated.

Parameters
valueA value to set.

Reimplemented from System::Net::WebRequest.

◆ set_ProtocolVersion()

void System::Net::HttpWebRequest::set_ProtocolVersion ( System::Version  version)

Sets the version of the HTTP.

Parameters
versionA version of the HTTP to set.

◆ set_Proxy()

void System::Net::HttpWebRequest::set_Proxy ( System::SharedPtr< IWebProxy value)
overridevirtual

Sets the HTTP proxy.

Parameters
valueThe proxy to set.

Reimplemented from System::Net::WebRequest.

◆ set_Referer()

virtual void System::Net::HttpWebRequest::set_Referer ( System::String  value)
virtual

Sets a value of the 'Referer' header.

Parameters
valueThe value that must be set.

◆ set_SendChunked()

virtual void System::Net::HttpWebRequest::set_SendChunked ( bool  value)
virtual

Sets a value that indicates if data must be sent in segments.

Parameters
valueThe value that must be set.

◆ set_Timeout()

void System::Net::HttpWebRequest::set_Timeout ( int  timeout)
override

Sets an amount of time in milliseconds after which the request will be timed out.

Parameters
timeoutA timeout to set.

◆ set_UseDefaultCredentials()

void System::Net::HttpWebRequest::set_UseDefaultCredentials ( bool  value)
overridevirtual

Sets a value that indicates if the 'Credential' property is equal to the 'DefaultCredentials' property.

Parameters
valueA value to set.

Reimplemented from System::Net::WebRequest.

◆ set_UserAgent()

virtual void System::Net::HttpWebRequest::set_UserAgent ( System::String  value)
virtual

Sets a value of the 'User-Agent' header.

Parameters
valueThe value that must be set.