code hindi Information technologyCareer blogs Courses info Digital Marketing About

HTTP (Hypertext Transfer Protocol) mein, ek request kya hota hai? What is HTTP request? Explained in simple Hindi

HTTP response, client ke bheje gaye request ka server dwara diya gaya jawab hota hai. Ye response server dwara client ko di gayi information ke sath hota hai, jise client browser ya application use karta hai. HTTP response ka basic format kuch is tarah hota hai:

  • 1. Status Line:
    • - HTTP Version: Server ke dwara istemal hone wala HTTP protocol version ko specify karta hai.
    • - Status Code: Three-digit number hota hai jo batata hai ki request successful hui hai ya fir koi error aayi hai.
    • - Reason Phrase: Ek short description hoti hai jo status code ke sath associated hoti hai.
    Example:

    HTTP/1.1 200 OK

  • 2. Headers:

    - Headers response ke sath additional information provide karte hain, jaise content type, content length, server information, etc.

    Example: Content-Type: text/html
    Content-Length: 1234
  • 3. Body:

    - Response body mein actual content hota hai, jise client use karta hai. Content type ke hisab se, ye HTML, JSON, XML, ya koi aur format mein ho sakta hai.

    Example:
             
             
             
                 Example Page
             
             
                 

    Hello, World!

Status code ke kuch common examples hain:
  • - 200 OK: Request successful hui hai aur server ne successfully response bheja hai.
  • - 404 Not Found: Server resource ko nahi mila jo client ne request kiya.
  • - 500 Internal Server Error: Server ne unexpected condition encounter ki hai, aur request complete nahi ho saka.

Ye HTTP response model client-server communication ka important hissa hai aur iski madad se web browsers aur applications server se data retrieve karte hain.

Server kya hota hai

Integrated Development Environment (IDE) kya hai