🛠️ToolsShed

Referensi Metode HTTP

Panduan lengkap metode HTTP — GET, POST, PUT, DELETE, PATCH, dan lainnya.

GETAman: YaIdempoten: Ya

Retrieves a resource without modifying server state. The most commonly used HTTP method.

Kasus penggunaan: Fetching a webpage, API data, or file.

POSTAman: TidakIdempoten: Tidak

Submits data to the server to create a new resource or trigger a process.

Kasus penggunaan: Form submission, creating a new record via API.

PUTAman: TidakIdempoten: Ya

Replaces the entire target resource with the request payload.

Kasus penggunaan: Updating a user profile — replaces all fields.

PATCHAman: TidakIdempoten: Tidak

Partially modifies a resource — only sends the fields that need updating.

Kasus penggunaan: Updating only the email of a user record.

DELETEAman: TidakIdempoten: Ya

Removes the target resource from the server.

Kasus penggunaan: Deleting a blog post or API record.

HEADAman: YaIdempoten: Ya

Same as GET but returns only headers, not the response body.

Kasus penggunaan: Checking if a URL exists or getting Content-Length.

OPTIONSAman: YaIdempoten: Ya

Describes the communication options for the target resource. Used in CORS preflight.

Kasus penggunaan: CORS preflight requests.

TRACEAman: YaIdempoten: Ya

Performs a message loop-back test along the path to the target resource.

Kasus penggunaan: Debugging proxy chains (rarely used, often disabled).

CONNECTAman: TidakIdempoten: Tidak

Establishes a tunnel to the server identified by the target resource.

Kasus penggunaan: HTTPS tunneling through HTTP proxies.

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.