Introduction to HTTP:-

HTTP (HyperText Transfer Protocol) एक Application Layer Protocol है, जिसका उपयोग इंटरनेट पर Web Browser (Client) और Web Server के बीच सूचना (Data) का आदान-प्रदान (Communication) करने के लिए किया जाता है।
जब कोई उपयोगकर्ता (User) अपने वेब ब्राउज़र में किसी वेबसाइट का URL (Uniform Resource Locator) दर्ज करता है, तो ब्राउज़र HTTP के माध्यम से उस वेबसाइट के सर्वर को अनुरोध (Request) भेजता है। सर्वर उस अनुरोध को संसाधित (Process) करके आवश्यक वेब पेज, चित्र (Images), वीडियो, दस्तावेज़ (Documents) या अन्य डेटा को HTTP Response के रूप में वापस भेजता है।
दूसरे शब्दों में, HTTP इंटरनेट पर वेब पेजों को देखने और उपयोग करने का मुख्य संचार (Communication) प्रोटोकॉल है।
english:-
HTTP (HyperText Transfer Protocol) is an Application Layer Protocol used for communication and the exchange of information (data) between a Web Browser (Client) and a Web Server over the Internet.
When a user enters the URL (Uniform Resource Locator) of a website into a web browser, the browser sends an HTTP Request to the web server. The server processes the request and returns the required web page, images, videos, documents, or other data as an HTTP Response.
In other words, HTTP is the primary communication protocol used to access and transfer web pages and other web resources on the Internet.
HTTP की कार्यप्रणाली (Working of HTTP):-
HTTP Client–Server Model पर कार्य करता है। इसमें Web Browser, Client के रूप में तथा Web Server, Server के रूप में कार्य करता है। जब कोई उपयोगकर्ता किसी वेबसाइट का URL दर्ज करता है, तो ब्राउज़र HTTP के माध्यम से सर्वर को Request (अनुरोध) भेजता है। सर्वर उस अनुरोध को संसाधित (Process) करके Response (उत्तर) के रूप में आवश्यक वेब पेज या अन्य डेटा वापस भेजता है।0\
HTTP works on the Client–Server Model. In this model, the Web Browser acts as the Client, and the Web Server acts as the Server. When a user enters the URL of a website in the web browser, the browser sends an HTTP Request to the server. The server receives and processes the request, then sends back the required web page or other data as an HTTP Response. The browser finally displays the received web page to the user.
HTTP Client और Server के बीच निम्न चरणों में कार्य करता है।
Step 1 – User URL दर्ज करता है
उदाहरण :-
Step 2 – Browser Request भेजता है
Browser HTTP Request Server को भेजता है।
Step 3 – Server Request प्राप्त करता है
Server Request को Process करता है।
Step 4 – Server Response भेजता है
Server HTML, CSS, Images आदि वापस भेजता है।
Step 5 – Browser Page दिखाता है
Browser प्राप्त HTML को Render करके Web Page प्रदर्शित करता है।
HTTP Request and Response :- HTTP Request (HTTP अनुरोध)
HTTP Request वह संदेश (Message) है जिसे Client (Web Browser) किसी Web Server से Web Page, Image, Video, File या अन्य Resource प्राप्त करने के लिए भेजता है।
जब उपयोगकर्ता Browser में किसी वेबसाइट का URL दर्ज करता है या किसी लिंक पर क्लिक करता है, तो Browser Server को HTTP Request भेजता है।
An HTTP Request is a message sent by a Client (Web Browser) to a Web Server to request a web page, image, video, file, or any other resource.
When a user enters the URL of a website in a browser or clicks on a hyperlink, the browser sends an HTTP Request to the server. The request asks the server to provide the required web page or resource.
HTTP Response :-
HTTP Response वह संदेश (Message) है जिसे Web Server, Client द्वारा भेजे गए HTTP Request को Process करने के बाद वापस भेजता है।
An HTTP Response is a message sent by the Web Server to the Client (Web Browser) after processing the HTTP Request.
HTTP Status Codes:-

HTTPS and Secure Communication (HTTPS और सुरक्षित संचार) HTTPS:-
HTTPS (HyperText Transfer Protocol Secure), HTTP का सुरक्षित (Secure) संस्करण है। यह Web Browser (Client) और Web Server के बीच भेजे जाने वाले डेटा को Encrypt (कूटबद्ध) करता है, जिससे कोई तीसरा व्यक्ति (Hacker) उस डेटा को पढ़ या बदल नहीं सकता।
HTTPS सुरक्षित संचार (Secure Communication) के लिए SSL (Secure Sockets Layer) या TLS (Transport Layer Security) प्रोटोकॉल का उपयोग करता है।
HTTPS (HyperText Transfer Protocol Secure) is the secure version of HTTP. It encrypts the data transmitted between a Web Browser (Client) and a Web Server, ensuring that unauthorized users or hackers cannot read or modify the information during transmission.
HTTPS uses SSL (Secure Sockets Layer) or TLS (Transport Layer Security) protocols to provide secure communication over the Internet. These protocols ensure that the data exchanged between the client and the server remains confidential, authentic, and protected from tampering.
Secure Communication :-
Secure Communication वह प्रक्रिया है जिसमें Client और Server के बीच डेटा को इस प्रकार भेजा जाता है कि कोई अनधिकृत व्यक्ति (Unauthorized Person) उसे पढ़, बदल या चोरी न कर सके।
HTTPS में Secure Communication के लिए Encryption, Authentication और Data Integrity का उपयोग किया जाता है।
Secure Communication is the process of transmitting data between a Client and a Server in such a way that no unauthorized person can read, modify, or steal the information.
In HTTPS, secure communication is achieved through Encryption, Authentication, and Data Integrity, which ensure that the data remains confidential, authentic, and unchanged during transmission. Common HTTP Methods:-
HTTP Methods ऐसे निर्देश (Instructions) हैं जो बताते हैं कि Client (Web Browser), Web Server पर कौन-सा कार्य (Operation) करना चाहता है। HTTP Methods का उपयोग किसी Resource को प्राप्त करने (Retrieve), बनाने (Create), अपडेट करने (Update) या हटाने (Delete) के लिए किया जाता है।
1. GET Method -
Server से Data या Resource प्राप्त (Retrieve) करने के लिए उपयोग किया जाता है।
2. POST Method
Server पर नया Data भेजने या नया Resource बनाने के लिए उपयोग किया जाता है।
3. PUT Method
किसी मौजूदा Resource को पूरी तरह (Completely) Update या Replace करने के लिए उपयोग किया जाता है।
4. PATCH Method
किसी Resource के केवल आवश्यक भाग (Partial Update) को Update करने के लिए उपयोग किया जाता है।
5. DELETE Method
Server से किसी Resource को हटाने (Delete) के लिए उपयोग किया जाता है।