mirror of
https://github.com/Farhan291/fetchy.git
synced 2026-03-09 20:32:43 +00:00
No description
- C 92.3%
- Makefile 7.7%
| request | ||
| response | ||
| ssl_connection | ||
| .gitignore | ||
| main.c | ||
| Makefile | ||
| README.md | ||
| server.c | ||
| server.h | ||
Fetchy
Fetchy is a minimal, curl-like command-line utility written in C for fetching web content over HTTP/HTTPS.
building
Clone the repository and run make in the project's root directory:
$ git clone https://github.com/Farhan291/fetchy.git
$ cd fetchy
$ make
usage
Provide a URL as a command-line argument.
To fetch a URL and display only its body:
$ ./main https://man.archlinux.org/
To include the response headers in the output, use the -h flag:
$ ./main -h https://man.archlinux.org/
what it can do
- send get request from cli
- An optional flag (-h) to view the response headers.
- can serve html pages
- support https too
TODO
- [] make it ready for POST and PUT
- [] parse the html page