HTTP Methods
Advanced HTTP Methods
OPTIONS, TRACE, HEAD, and CUSTOM methods for specialized use cases.
Beyond the basic HTTP methods, Z-Fetch provides support for advanced HTTP methods used in specialized scenarios.
Advanced Methods
- OPTIONS - Check supported methods and capabilities
- TRACE - Diagnostic tool for debugging requests
- HEAD - Get response headers without body
- CUSTOM - Use any custom HTTP method
Method Examples
OPTIONS Request
Use OPTIONS to check what methods and capabilities a server supports:
TRACE Request
TRACE is useful for debugging request paths through proxies:
Note
Many servers disable TRACE for security reasons. Check server configuration if you encounter issues.
HEAD Request
Get response headers without downloading the full response body:
CUSTOM Request
Use any custom HTTP method for specialized protocols:
Real-World Example: WebDAV
Use Cases
OPTIONS:
- CORS preflight checks
- API capability discovery
- Server feature detection
TRACE:
- Request debugging
- Proxy troubleshooting
- Security testing
HEAD:
- File size checking
- Cache validation
- Resource existence checks
CUSTOM:
- WebDAV operations (PROPFIND, MKCOL, MOVE, COPY)
- Custom API protocols
- Legacy system integration