corporateshark / LUrlParser

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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( "https://John:Dow@github.com:80/corporateshark/LUrlParser" );

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)

License:Other


Languages

Language:C++ 95.7%Language:Makefile 2.4%Language:CMake 1.9%