Support the ongoing development of Laravel.io →
Requests Input
Last updated 2 years ago.
0

HEAD is for retrieving only the headers response when the client make a request to your server

a common server response is something like this:

HTTP/1.1 200 OK
Date: Tue, 04 Mar 2014 18:26:30 GMT
Server: Apache/2.2.22 (Win32) PHP/5.4.3
X-Powered-By: PHP/5.4.3
Cache-Control: no-cache
X-Frame-Options: SAMEORIGIN
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
<html>
	<head>
		....
	</head>
	<body>
		....
	</body>
</html>

using a HEAD type request just only get the headers, those data before the <HTML> code starts in this case

Last updated 2 years ago.
0

Thanks. I was wondering why "HEAD" started showing up in the artisan route command. Maybe it's always been there, I just never noticed it.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.