CoderSathi
  • Tutorial
    • Java Tutorial
    • Swing Tutorial
    • JDBC Tutorial
    • Java String Tutorial
    • Servlet and JSP Tutorial
  • Mongo DB
  • AWS
  • DevOps
  • Linux
  • Git
Home > What is > HTTP Methods

HTTP Methods

Learn the concepts, implementation details, and practical steps with a clean developer-focused walkthrough.

Yuba Raj Kalathoki
By Yuba Raj Kalathoki
Published: February 19, 2022 ยท 2 min read ยท 0 Comments
Share: X in ๐Ÿ”—
git change remote url

HTTP methods are basically used to let server know what to do with the given resource of the particular request. Mainly, there are eight HTTP methods which are listed below.

GET

GET is the simplest, and probably the most used HTTP method. It simply retrieves the data identified by the URL. If the URL refers to a script like a servlet, it returns the data produced by the script.

HEAD

The HEAD method provides the same functionality as GET, but it only returns HTTP headers without the document body.

POST

Like GET, POST is also a widely used HTTP method. Typically, the POST method is used in HTML forms. POST is used to transfer a block of data from the client to the server in the entity-body of the request.

OPTIONS

The OPTIONS method is used to query a server about the capabilities it provides. Queries can be general or specific to a particular resource.

PUT

The PUT method is used to replace all the existing content with the given request content.

DELETE

The DELETE method is used to delete the content or resource from the server. The resource to be deleted is indicated in the URI section of the request.

TRACE

The TRACE method is used to trace the path of a request through the firewall and multiple proxy servers. TRACE is useful for debugging complex network problems and is similar to the traceroute tool.

PATCH

The patch method is similar to the PUT but it can be used to modify the resource partially.

Related Posts:

  • How To Read Servlet Parameters in Java: A Step-by-Step Guide
  • A Simple Servlet Program in Java
  • Servlet Redirections
  • Servlet Life Cycle
  • Update MongoDB Document
  • Servlet RequestDispatcher forward vs include
Tags:httpserver-sideweb
Was this article helpful?
โ† Previous ArticleServlet Redirections
Next Article โ†’Top 10 Common Java Errors

Leave a Comment Cancel reply

You must be logged in to post a comment.

Recent Posts

  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • How to Fix SSH Agent Forwarding on macOS: The Ultimate Guide for Developers
  • How to Read AWS Secrets Manager in Spring Boot (Step-by-Step)
  • How to Fix “Public Key Retrieval is not allowed” MySQL JDBC Error
  • Complete Guide to JaCoCo: How to Measure Java Code Coverage Accurately
CoderSathi

Your go-to resource for Java, Spring Boot, Microservices, AWS, and modern development tutorials.

Quick Links

  • About
  • Contact

Popular Topics

  • Java
  • Spring Boot
  • AWS
  • DevOps
  • MongoDB
  • Linux
  • Git
  • How to
ยฉ 2026 CoderSathi. All rights reserved. Privacy Policy ยท Sitemap