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
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community