Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bitfede/pythonhttpclients

These are a very basic HTTP and socket clients written in Python. They both send a GET request to a webserver.
https://github.com/bitfede/pythonhttpclients

Last synced: 22 days ago
JSON representation

These are a very basic HTTP and socket clients written in Python. They both send a GET request to a webserver.

Awesome Lists containing this project

README

        

# Python HTTP Clients by Federico De Faveri

These are very simple Python clients that send an HTTP GET request and print the server's response.

## USAGE:

### ClientHTTP.py

To run execute in your terminal window `python3 ClientHTTP.py`

This program will ask the user for three inputs:

1. The host we want to connect to (for example localhost)

2. The port we wanto to connect to (for example 80)

3. The page we want to retrieve (for example /index.php)

After these three inputs from the user, the program will send the GET request and then print out the response from the webserver.

### socketclient.py

To run execute in your terminal window `python3 socketclient.py`

This program will simply send and HTTP GET request for the index page. The difference between this program and the previous one is that this one uses a socket library, not an HTTP library.

----

Nothing too fancy at all but a great learning experience on how the web works!

Thank you!