Linux Shell Komutu İle HTTP Headers Alma
Bazı durumlarda sistem / sunucu yöneticisi olarak sitelerin web server durumunu öğrenmek isteyebilirsiniz. Örneğin bu yol ile cache aktif mi, nginx mi yoksa apache mi kullanıyor gibi bilgileri edinebilirsiniz.
örnek bir komut (SSH da yürütün, istediğiniz site için kullanın) :
curl -I cliaweb.com
Örnek çıktı (biz örnek olarak cliaweb.com un headers ını aldık) ;
HTTP/1.1 302 Found
Server: nginx admin
Date: Sat, 10 Nov 2018 10:08:34 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 208
Connection: keep-alive
Location: https://www.cliaweb.com/
Cache-Control: max-age=7200
Expires: Sat, 10 Nov 2018 12:08:34 GMT
X-Cache: HIT from Backend
Was this answer helpful?
Have not you found what you're looking for here? Since this field is not constantly updated, maybe it is not what you are looking for. For more articles visit our Webmaster Blog site ; http://blog.cliaweb.com