Send your friend this message on WhatsApp.
GET /hello-world HTTP/1.1
Host: www.example.com
User-Agent: WhatsApp Web
Accept: text/plain
๐ Hey server, how's it going? Can you send me some plain text, please? Thanks! ๐
your friend responds with
HTTP/1.1 200 OK
Content-Type: text/plain
๐ Hey there! Sure thing, here's your plain text response:
"Hello, world! ๐"
as you can see, we have successfully sent a http request to your friend and have received a http response back.
Now there is a new question how you convert this text into object! We parse it! Parsing is the process of converting text into object following a grammar. Leaning more by asking GPT, have a nice life bye!
ย