mercredi 18 mars 2015

Spring MVC Trace Http Request

I want to disable the Trace verb on the serve so that endpoints are untraceable.


My endpoints are created using Spring MVC and there is a option endpoints.trace.enabled=false.


Pain is how to test this, if trace is disabled or not. I tried chrome plug-ins live HTTP Headers but it for generic site. I want to check my endpoint.


For example:


Request Header for get toy



Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8
Authorization: HHMAC; key="key"; signature="signature"; date="2015-03-19T00:19:44Z"
TRACE: toy/4b7f1e4d-e050-3a44-af19-965d0c3f4640
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
X-DevTools-Emulate-Network-Conditions-Client-Id: DEA88417-37A8-4D75-98D7-4663496CD6C0
X-Forwarded-For: 127.0.0.1


How should the response look with TRACE?


Aucun commentaire:

Enregistrer un commentaire