System.Net.HttpClientComponent.TNetHTTPClient.Head

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Head(const AURL: string; const AHeaders: TNetHeaders = nil): IHTTPResponse;

C++

System::Net::Httpclient::_di_IHTTPResponse __fastcall Head(const System::UnicodeString AURL, const System::DynamicArray<System::Net::Urlclient::TNameValuePair> AHeaders = System::DynamicArray<System::Net::Urlclient::TNameValuePair>());

Properties

Type Visibility Source Unit Parent
function public
System.Net.HTTPClientComponent.pas
System.Net.HTTPClientComponent.hpp
System.Net.HttpClientComponent TNetHTTPClient

Description

Sends an HTTP request to the specified URL using the HEAD HTTP request method, waits for the server to send a response, and returns the HTTP response of the server.

Use AHeaders to include custom HTTP request headers in your HTTP request.

Head raises an ENetHTTPRequestException if the HTTP request reaches the maximum number of redirects.

See Also