https://github.com/donosonaumczuk/http-proxy
HTTP Proxy: Project for Communication Protocols ITBA Subject
https://github.com/donosonaumczuk/http-proxy
http http-protocol http-proxy http-server
Last synced: 8 months ago
JSON representation
HTTP Proxy: Project for Communication Protocols ITBA Subject
- Host: GitHub
- URL: https://github.com/donosonaumczuk/http-proxy
- Owner: donosonaumczuk
- Created: 2019-04-18T19:56:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T18:09:36.000Z (over 6 years ago)
- Last Synced: 2025-01-03T21:42:38.363Z (9 months ago)
- Topics: http, http-protocol, http-proxy, http-server
- Language: C
- Size: 2.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http-proxy
## Prerequisites
LINUX
````
sudo apt-get install make gcc libsctp-dev
````
## Setup
On root folder execute```make```
The proxy server is the root folder with the name httpd.
The manager client is in the root folder with the name httpdclt.## Run proxy
On root directory
```./httpd```
For more information see ./httpd.8
## Run manager
``./httpdctl [ip port]``
Ip and port are optionals and it must be both of them or neither of them.
The username is "manager" and the password is "pdc69"
## Command of manager
It support pipe-linning, the syntaxis is:
````
cmd
cmd
.
.
.
cmd
.
````
Note the it finish with the '.' character and cmd is one of the following commands:
* Gets the transformation command
``get cmd``
* Gets the list of media range
``get mime``
* Gets the estate of the transformations
``get tf``
* Gets the quantity of concurrents connections
``get mtr cn``
* Gets the quantity of historics connections
``get mtr hs``
* Gets the quantity of transfer bytes
``get mtr bt``
* Change the transformation command for th command parameter
``set cmd command``
* Adds the media-range parameter to the list of media-ranges from the proxy
``set mime media-range``
* Resets the list of media-ranges from the proxy
``set mime``
* Turn on or off the tranfomations
``set tf on/off``
* Sends a request Bye to the server
``bye``
## Documentation
The report, protocol ABNF and presentation will be located under documentation folder
## Code use from course
The following files has been copied from socks5 course proyect
smt.c
smt.h
buffer.c
buffer.h
selector.c
selector.h## Logs
Logs will create a folder logs under the directory that you run the
httpd binary. In this folder it will create a file for each level of
log (access, debug, error).