Skip to content

kpalaw/kget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP Client in C++

kget is a simple HTTP request programme. We can run kget to get the web page. eg. $kget www.google.com, kget will return the html page back but in the text form.

Install Boost Library

$sudo apt update

$sudo apt install libboost-all-dev

How to compile kget

$g++ kget.cpp -o kget -lboost_regex

Run kget

kget <url>

For Example.
$kget
or
$kget www.google.com

The result screenshot

Result return from google server.

kget Diagram

sequenceDiagram
kget ->> Server: HTTP Request: GET / HTTP/1.0\n\n
Note right of Server: If the requested pattern is ok it will return something back to kget.
Server-->>kget: <HTTP Header> + HTML 
Loading

About

Simple HTTP Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages