Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityWebRequest.Head

public static Networking.UnityWebRequest Head(string uri);

Parameters

uri The URI to which to send a HTTP HEAD request.

Returns

UnityWebRequest A UnityWebRequest configured to transmit a HTTP HEAD request.

Description

Creates a UnityWebRequest configured to send a HTTP HEAD request.

This method creates a UnityWebRequest, sets the verb to HEAD and sets the target URL to the string argument uri. It sets no custom flags or headers.

This method attaches no DownloadHandler or UploadHandler to the UnityWebRequest.

Did you find this page useful? Please give it a rating: