UnityEngine.UnityWebRequestModule Responsible for rejecting or accepting certificates received on https requests. Signals that this [CertificateHandler] is no longer being used, and should clean up any resources it is using. Callback, invoked for each leaf certificate sent by the remote server. Certificate data in PEM or DER format. If certificate data contains multiple certificates, the first one is the leaf certificate. true if the certificate should be accepted, false if not. Manage and process HTTP response body data received from a remote server. Returns the raw bytes downloaded from the remote server, or null. (Read Only) Returns true if this DownloadHandler has been informed by its parent UnityWebRequest that all data has been received, and this DownloadHandler has completed any necessary post-download processing. (Read Only) Convenience property. Returns the bytes from data interpreted as a UTF8 string. (Read Only) Callback, invoked when all data has been received from the remote server. Signals that this DownloadHandler is no longer being used, and should clean up any resources it is using. Callback, invoked when the data property is accessed. Byte array to return as the value of the data property. Callback, invoked when UnityWebRequest.downloadProgress is accessed. The return value for UnityWebRequest.downloadProgress. Callback, invoked when the text property is accessed. String to return as the return value of the text property. Callback, invoked with a Content-Length header is received. The value of the received Content-Length header. Callback, invoked as data is received from the remote server. A buffer containing unprocessed data, received from the remote server. The number of bytes in data which are new. True if the download should continue, false to abort. A general-purpose DownloadHandler implementation which stores received data in a native byte buffer. Default constructor. Returns a copy of the native-memory buffer interpreted as a UTF8 string. A finished UnityWebRequest object with DownloadHandlerBuffer attached. The same as DownloadHandlerBuffer.text Returns a copy of the contents of the native-memory data buffer as a byte array. A copy of the data which has been downloaded. Download handler for saving the downloaded data to file. Should the created file be removed if download is aborted (manually or due to an error). Default: false. Creates a new instance and a file on disk where downloaded data will be written to. Path to file to be written. An abstract base class for user-created scripting-driven DownloadHandler implementations. Create a DownloadHandlerScript which allocates new buffers when passing data to callbacks. Create a DownloadHandlerScript which reuses a preallocated buffer to pass data to callbacks. A byte buffer into which data will be copied, for use by DownloadHandler.ReceiveData. An interface for composition of data into multipart forms. Returns the value to use in the Content-Type header for this form section. The value to use in the Content-Type header, or null. Returns a string denoting the desired filename of this section on the destination server. The desired file name of this section, or null if this is not a file section. Returns the raw binary data contained in this section. Must not return null or a zero-length array. The raw binary data contained in this section. Must not be null or empty. Returns the name of this section, if any. The section's name, or null. A helper object for form sections containing generic, non-file data. Returns the value to use in this section's Content-Type header. The Content-Type header for this section, or null. Returns a string denoting the desired filename of this section on the destination server. The desired file name of this section, or null if this is not a file section. Returns the raw binary data contained in this section. Will not return null or a zero-length array. The raw binary data contained in this section. Will not be null or empty. Returns the name of this section, if any. The section's name, or null. Raw data section, unnamed and no Content-Type header. Data payload of this section. Raw data section with a section name, no Content-Type header. Section name. Data payload of this section. A raw data section with a section name and a Content-Type header. Section name. Data payload of this section. The value for this section's Content-Type header. A named raw data section whose payload is derived from a string, with a Content-Type header. Section name. String data payload for this section. The value for this section's Content-Type header. An encoding to marshal data to or from raw bytes. A named raw data section whose payload is derived from a UTF8 string, with a Content-Type header. Section name. String data payload for this section. C. A names raw data section whose payload is derived from a UTF8 string, with a default Content-Type. Section name. String data payload for this section. An anonymous raw data section whose payload is derived from a UTF8 string, with a default Content-Type. String data payload for this section. A helper object for adding file uploads to multipart forms via the [IMultipartFormSection] API. Returns the value of the section's Content-Type header. The Content-Type header for this section, or null. Returns a string denoting the desired filename of this section on the destination server. The desired file name of this section, or null if this is not a file section. Returns the raw binary data contained in this section. Will not return null or a zero-length array. The raw binary data contained in this section. Will not be null or empty. Returns the name of this section, if any. The section's name, or null. Contains a named file section based on the raw bytes from data, with a custom Content-Type and file name. Name of this form section. Raw contents of the file to upload. Name of the file uploaded by this form section. The value for this section's Content-Type header. Contains an anonymous file section based on the raw bytes from data, assigns a default Content-Type and file name. Raw contents of the file to upload. Contains an anonymous file section based on the raw bytes from data with a specific file name. Assigns a default Content-Type. Raw contents of the file to upload. Name of the file uploaded by this form section. Contains a named file section with data drawn from data, as marshaled by dataEncoding. Assigns a specific file name from fileName and a default Content-Type. Name of this form section. Contents of the file to upload. A string encoding. Name of the file uploaded by this form section. An anonymous file section with data drawn from data, as marshaled by dataEncoding. Assigns a specific file name from fileName and a default Content-Type. Contents of the file to upload. A string encoding. Name of the file uploaded by this form section. An anonymous file section with data drawn from the UTF8 string data. Assigns a specific file name from fileName and a default Content-Type. Contents of the file to upload. Name of the file uploaded by this form section. The UnityWebRequest object is used to communicate with web servers. Holds a reference to a CertificateHandler object, which manages certificate validation for this UnityWebRequest. Indicates whether the UnityWebRequest system should employ the HTTP/1.1 chunked-transfer encoding method. If true, any CertificateHandler attached to this UnityWebRequest will have CertificateHandler.Dispose called automatically when UnityWebRequest.Dispose is called. If true, any DownloadHandler attached to this UnityWebRequest will have DownloadHandler.Dispose called automatically when UnityWebRequest.Dispose is called. If true, any UploadHandler attached to this UnityWebRequest will have UploadHandler.Dispose called automatically when UnityWebRequest.Dispose is called. Returns the number of bytes of body data the system has downloaded from the remote server. (Read Only) Holds a reference to a DownloadHandler object, which manages body data received from the remote server by this UnityWebRequest. Returns a floating-point value between 0.0 and 1.0, indicating the progress of downloading body data from the server. (Read Only) A human-readable string describing any system errors encountered by this UnityWebRequest object while handling HTTP requests or responses. (Read Only) Returns true after the UnityWebRequest has finished communicating with the remote server. (Read Only) Returns true after this UnityWebRequest receives an HTTP response code indicating an error. (Read Only) Returns true while a UnityWebRequest’s configuration properties can be altered. (Read Only) Returns true after this UnityWebRequest encounters a system error. (Read Only) The string "CREATE", commonly used as the verb for an HTTP CREATE request. The string "DELETE", commonly used as the verb for an HTTP DELETE request. The string "GET", commonly used as the verb for an HTTP GET request. The string "HEAD", commonly used as the verb for an HTTP HEAD request. The string "POST", commonly used as the verb for an HTTP POST request. The string "PUT", commonly used as the verb for an HTTP PUT request. Defines the HTTP verb used by this UnityWebRequest, such as GET or POST. Indicates the number of redirects which this UnityWebRequest will follow before halting with a “Redirect Limit Exceeded” system error. The numeric HTTP response code returned by the server, such as 200, 404 or 500. (Read Only) Sets UnityWebRequest to attempt to abort after the number of seconds in timeout have passed. Returns the number of bytes of body data the system has uploaded to the remote server. (Read Only) Holds a reference to the UploadHandler object which manages body data to be uploaded to the remote server. Returns a floating-point value between 0.0 and 1.0, indicating the progress of uploading body data to the server. Defines the target URI for the UnityWebRequest to communicate with. Defines the target URL for the UnityWebRequest to communicate with. Determines whether this UnityWebRequest will include Expect: 100-Continue in its outgoing request headers. (Default: true). If in progress, halts the UnityWebRequest as soon as possible. Clears stored cookies from the cache. An optional URL to define which cookies are removed. Only cookies that apply to this URL will be removed from the cache. Clears stored cookies from the cache. An optional URL to define which cookies are removed. Only cookies that apply to this URL will be removed from the cache. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET. The target URL with which this UnityWebRequest will communicate. Also accessible via the url property. The target URI to which form data will be transmitted. HTTP GET, POST, etc. methods. Replies from the server. Upload data to the server. Creates a UnityWebRequest configured for HTTP DELETE. The URI to which a DELETE request should be sent. A UnityWebRequest configured to send an HTTP DELETE request. Signals that this UnityWebRequest is no longer being used, and should clean up any resources it is using. Escapes characters in a string to ensure they are URL-friendly. A string with characters to be escaped. The text encoding to use. Escapes characters in a string to ensure they are URL-friendly. A string with characters to be escaped. The text encoding to use. Generate a random 40-byte array for use as a multipart form boundary. 40 random bytes, guaranteed to contain only printable ASCII values. Create a UnityWebRequest for HTTP GET. The URI of the resource to retrieve via HTTP GET. An object that retrieves data from the uri. Create a UnityWebRequest for HTTP GET. The URI of the resource to retrieve via HTTP GET. An object that retrieves data from the uri. Deprecated. Replaced by UnityWebRequestAssetBundle.GetAssetBundle. Deprecated. Replaced by UnityWebRequestAssetBundle.GetAssetBundle. Deprecated. Replaced by UnityWebRequestAssetBundle.GetAssetBundle. Deprecated. Replaced by UnityWebRequestAssetBundle.GetAssetBundle. OBSOLETE. Use UnityWebRequestMultimedia.GetAudioClip(). Retrieves the value of a custom request header. Name of the custom request header. Case-insensitive. The value of the custom request header. If no custom header with a matching name has been set, returns an empty string. Retrieves the value of a response header from the latest HTTP response received. The name of the HTTP header to retrieve. Case-insensitive. The value of the HTTP header from the latest HTTP response. If no header with a matching name has been received, or no responses have been received, returns null. Retrieves a dictionary containing all the response headers received by this UnityWebRequest in the latest HTTP response. A dictionary containing all the response headers received in the latest HTTP response. If no responses have been received, returns null. Creates a UnityWebRequest intended to download an image via HTTP GET and create a Texture based on the retrieved data. The URI of the image to download. If true, the texture's raw data will not be accessible to script. This can conserve memory. Default: false. A UnityWebRequest properly configured to download an image and convert it to a Texture. Creates a UnityWebRequest intended to download an image via HTTP GET and create a Texture based on the retrieved data. The URI of the image to download. If true, the texture's raw data will not be accessible to script. This can conserve memory. Default: false. A UnityWebRequest properly configured to download an image and convert it to a Texture. Creates a UnityWebRequest configured to send a HTTP HEAD request. The URI to which to send a HTTP HEAD request. A UnityWebRequest configured to transmit a HTTP HEAD request. Creates a UnityWebRequest configured to send form data to a server via HTTP POST. The target URI to which form data will be transmitted. Form body data. Will be URLEncoded prior to transmission. A UnityWebRequest configured to send form data to uri via POST. Create a UnityWebRequest configured to send form data to a server via HTTP POST. The target URI to which form data will be transmitted. Form fields or files encapsulated in a WWWForm object, for formatting and transmission to the remote server. A UnityWebRequest configured to send form data to uri via POST. Create a UnityWebRequest configured to send form data to a server via HTTP POST. The target URI to which form data will be transmitted. A list of form fields or files to be formatted and transmitted to the remote server. A unique boundary string, which will be used when separating form fields in a multipart form. If not supplied, a boundary will be generated for you. A UnityWebRequest configured to send form data to uri via POST. Create a UnityWebRequest configured to send form data to a server via HTTP POST. The target URI to which form data will be transmitted. A list of form fields or files to be formatted and transmitted to the remote server. A unique boundary string, which will be used when separating form fields in a multipart form. If not supplied, a boundary will be generated for you. A UnityWebRequest configured to send form data to uri via POST. Create a UnityWebRequest configured to send form data to a server via HTTP POST. The target URI to which form data will be transmitted. Strings indicating the keys and values of form fields. Will be automatically formatted into a URL-encoded form body. A UnityWebRequest configured to send form data to uri via POST. Creates a UnityWebRequest configured to upload raw data to a remote server via HTTP PUT. The URI to which the data will be sent. The data to transmit to the remote server. If a string, the string will be converted to raw bytes via <a href="http:msdn.microsoft.comen-uslibrarysystem.text.encoding.utf8">System.Text.Encoding.UTF8<a>. A UnityWebRequest configured to transmit bodyData to uri via HTTP PUT. Creates a UnityWebRequest configured to upload raw data to a remote server via HTTP PUT. The URI to which the data will be sent. The data to transmit to the remote server. If a string, the string will be converted to raw bytes via <a href="http:msdn.microsoft.comen-uslibrarysystem.text.encoding.utf8">System.Text.Encoding.UTF8<a>. A UnityWebRequest configured to transmit bodyData to uri via HTTP PUT. Begin communicating with the remote server. An AsyncOperation indicating the progress/completion state of the UnityWebRequest. Yield this object to wait until the UnityWebRequest is done. Begin communicating with the remote server. Converts a List of IMultipartFormSection objects into a byte array containing raw multipart form data. A List of IMultipartFormSection objects. A unique boundary string to separate the form sections. A byte array of raw multipart form data. Serialize a dictionary of strings into a byte array containing URL-encoded UTF8 characters. A dictionary containing the form keys and values to serialize. A byte array containing the serialized form. The form's keys and values have been URL-encoded. Set a HTTP request header to a custom value. The key of the header to be set. Case-sensitive. The header's intended value. Converts URL-friendly escape sequences back to normal text. A string containing escaped characters. The text encoding to use. Converts URL-friendly escape sequences back to normal text. A string containing escaped characters. The text encoding to use. Asynchronous operation object returned from UnityWebRequest.SendWebRequest(). You can yield until it continues, register an event handler with AsyncOperation.completed, or manually check whether it's done (AsyncOperation.isDone) or progress (AsyncOperation.progress). Returns the associated UnityWebRequest that created the operation. Helper object for UnityWebRequests. Manages the buffering and transmission of body data during HTTP requests. Determines the default Content-Type header which will be transmitted with the outbound HTTP request. The raw data which will be transmitted to the remote server as body data. (Read Only) Returns the proportion of data uploaded to the remote server compared to the total amount of data to upload. (Read Only) Signals that this UploadHandler is no longer being used, and should clean up any resources it is using. A specialized UploadHandler that reads data from a given file and sends raw bytes to the server as the request body. Create a new upload handler to send data from the given file to the server. A file containing data to send. A general-purpose UploadHandler subclass, using a native-code memory buffer. General constructor. Contents of the input argument are copied into a native buffer. Raw data to transmit to the remote server. The UnityWebRequest module lets you communicate with http services. Helper class to generate form data to post to web servers using the UnityWebRequest or WWW classes. (Read Only) The raw data to pass as the POST request body when sending the form. (Read Only) Returns the correct request headers for posting the form using the WWW class. Add binary data to the form. Add binary data to the form. Add binary data to the form. Add a simple field to the form. Add a simple field to the form. Adds a simple field to the form. Creates an empty WWWForm object.