No description
  • C 92.3%
  • Makefile 7.7%
Find a file
2025-08-08 14:45:29 +05:30
request fix: http parse problem 2025-08-08 14:45:29 +05:30
response intial commit 2025-08-07 12:44:37 +05:30
ssl_connection added https support 2025-08-07 21:10:29 +05:30
.gitignore intial commit 2025-08-07 12:44:37 +05:30
main.c fix: http parse problem 2025-08-08 14:45:29 +05:30
Makefile added https support 2025-08-07 21:10:29 +05:30
README.md updated readme 2025-08-07 21:14:31 +05:30
server.c added https support 2025-08-07 21:10:29 +05:30
server.h intial commit 2025-08-07 12:44:37 +05:30

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