Sitelet https://github.com/corporateshark/LUrlParser
Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight URL & URI parser (RFC 1738, RFC 3986)

(C) Sergey Kosarevsky, 2015-2020

@corporateshark sk@linderdaum.com

http://www.linderdaum.com

http://blog.linderdaum.com

=============================

A tiny and lightweight URL & URI parser (RFC 1738, RFC 3986) written in C++.

=============================

Usage example:

const auto URL = LUrlParser::ParseURL::parseurl(/sitelet?url=https%3A%2F%2Fgithub.com%2Fcorporateshark%2F%2522https%3A%2F%2FJohn%3ADow%40github.com%3A80%2Fcorporateshark%2FLUrlParser%2522);

if ( URL.isValid() )
{
	cout << "Scheme    : " << URL.scheme_ << endl;
	cout << "Host      : " << URL.host_ << endl;
	cout << "Port      : " << URL.port_ << endl;
	cout << "Path      : " << URL.path_ << endl;
	cout << "Query     : " << URL.query_ << endl;
	cout << "Fragment  : " << URL.fragment_ << endl;
	cout << "User name : " << URL.userName_ << endl;
	cout << "Password  : " << URL.password_ << endl;
}

=============================

About

Lightweight URL & URI parser (RFC 1738, RFC 3986)

Resources

Stars

98 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages