Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Methods in odata

ramesh_punder
Explorer
1,324

What is head method and When we go for head operation ?.

2 REPLIES 2

Sandra_Rossi
Active Contributor
1,239

It seems you didn't search before asking.

Searching for you:

2622728 - HTTP HEAD Method is not available in Gateway Client - SAP for Me

evanireland
Product and Topic Expert
Product and Topic Expert
1,239

It's like a GET method that doesn't return the response payload (but it does return response headers).

For example if you want to check if an OData server is "up", you could send a GET request for the service document or the metadata document.

But a HEAD request to the same resource might be faster since it won't need to transmit the response payload to the client.

However... Some proxy servers or server frameworks will reject HEAD requests (for "security" reasons), so it's often best not to rely on them working.