HTTP(S) (Hypertext Transfer Protocol (Secure))

Defines how your web browser communicates with the web servers. https://tryhackme.com/r/room/protocolsandservers

Some of the commands or methods that your web browser commonly issues to the web server are:

  • GET retrieves data from a server, such as an HTML file or an image.

  • POST allows us to submit new data to the server, such as submitting a form or uploading a file.

  • PUT is used to create a new resource on the server and to update and overwrite existing information.

  • DELETE, as the name suggests, is used to delete a specified file or resource on the server.

HTTP and HTTPS commonly use TCP ports 80 and 443, respectively, and less commonly other ports such as 8080 and 8443.

Some examples withtelnet

GET / HTTP/1.1 and Host: anything

On some servers, you might get the file without sending Host: anything

To get file.html, you would send GET /file.html HTTP/1.1,

Or just GET /file.html might work depending on the web server in use. This approach is efficient for troubleshooting as you would be “talking HTTP” with the server.

Last updated