Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bitfede/pythonhttpclients
- Owner: bitfede
- Created: 2015-11-24T02:02:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T02:21:28.000Z (about 9 years ago)
- Last Synced: 2024-11-20T23:19:27.072Z (3 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!