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

Overview

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

(C) Sergey Kosarevsky, 2015-2020

@corporateshark [email protected]

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:[email protected]: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;
}

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

You might also like...
Ultra-lightweight web browser based on Qt Ultralight webview, powered by Ultralight HTML renderer
Ultra-lightweight web browser based on Qt Ultralight webview, powered by Ultralight HTML renderer

Qt Ultralight Browser This is an ultra-lightweight web browser powered by the Ultralight web engine embedded in Qt 5 app as a custom webview widget -

HevSocks5Core is a simple, lightweight socks5 library

A simple, lightweight socks5 library. (IPv4/IPv6/TCP/UDP/Client/Server)

a lightweight and performant multicast DNS (mDNS) reflector with modern design, supports zone based reflection and IPv6

mDNS Reflector mDNS Reflector (mdns-reflector) is a lightweight and performant multicast DNS (mDNS) reflector with a modern design. It reflects mDNS q

A Lightweight and fully asynchronous WebSocket client library based on libev

libuwsc(中文) A Lightweight and fully asynchronous WebSocket client library based on libev for Embedded Linux. And provide Lua-binding. Why should I cho

Lightweight, header-only, Boost-based socket pool library

Stream-client This is a lightweight, header-only, Boost-based library providing client-side network primitives to easily organize and implement data t

A lightweight firewall for nuttx

iptables-lite A lightweight firewall for nuttx Prerequisites The first step to get started with NuttX is to install a series of required tools. They c

Lightweight Python Web framework

fly Python lightweight web application framework. Event driven architecture. Usable as Web server and Application server. Lightweight and fast. Since

aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line.

aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.

C++ framework for building lightweight HTTP interfaces
C++ framework for building lightweight HTTP interfaces

Pion Network Library C++ framework for building lightweight HTTP interfaces Project Home: https://github.com/rimmartin/pion-ng Documentation Retrievin

Comments
  • Plarse fix sample code typo

    Plarse fix sample code typo

    I found a typo in the sample code in README.md.

    const auto URL = LUrlParser::ParseURL::ParseURL( "https://John:[email protected]:80/corporateshark/LUrlParser" );
    

    I think ParseURL must be parseURL. Would you fix the code?

    opened by toge 1
  • Unable to parse URIs with port but no body

    Unable to parse URIs with port but no body

    Not sure if this is still being worked on, but The following code:

    LUrlParser::clParseURL URL = LUrlParser::clParseURL::ParseURL("http://192.168.0.1:8008");
    

    results in error 6, unexpected end of line.

    opened by hcorion 1
Releases(release-1.1)
Owner
Sergey Kosarevsky
3D rendering on mobiles, desktops, and embedded devices. Previously Rendering Lead at Ubisoft RedLynx, Head of Core Technology at Layar & Blippar & TWNKLS.
Sergey Kosarevsky
cpp-netlib URI

Deprecation warning This library is still missing some features (including full Unicode support), and does not work on some of the newest compiler ver

C++ Network Library 129 Dec 27, 2022
Resolvidos do URI p/ Maratonas

URI_Resolvidos Resolvidos do URI p/ Maratonas Esse repositório contém diversos exercícios do URI, em sua maioria resolvidos, podendo conter um ou outr

null 2 Sep 30, 2021
URI Templates expansion and reverse-matching for C++

URI-template This library implements URI Template with full support up to Level 4 providing expansion and match capabilities. It requires c++17 compil

Tinkoff.ru 7 Jan 21, 2022
tiny HTTP parser written in C (used in HTTP::Parser::XS et al.)

PicoHTTPParser Copyright (c) 2009-2014 Kazuho Oku, Tokuhiro Matsuno, Daisuke Murase, Shigeo Mitsunari PicoHTTPParser is a tiny, primitive, fast HTTP r

H2O 1.6k Jan 1, 2023
http request/response parser for c

HTTP Parser http-parser is not actively maintained. New projects and projects looking to migrate should consider llhttp. This is a parser for HTTP mes

Node.js 6.1k Jan 2, 2023
http request/response parser for c

HTTP Parser http-parser is not actively maintained. New projects and projects looking to migrate should consider llhttp. This is a parser for HTTP mes

Node.js 6.1k Jan 3, 2023
Violet - Lightweight STUN/TURN server

Violet is a lightweight STUN/TURN server (RFC8489 and RFC8656) based on libjuice.

Paul-Louis Ageneau 111 Jan 3, 2023
Doom classic port to lightweight RISC‑V

Doom classic port to lightweight RISC-V This is a port to try and make adapting/running doom to simple RISC-V platform easier with the code to adapt w

Sylvain 56 Dec 1, 2022
A lightweight plugin loader for Bedorck Dedicated Server

LiteLoader 简体中文 Donate us(afdian) Forum A lightweight Bedorck Dedicated Server Plugin Loader Based on BedrockX Install Download LiteLoader from Releas

null 574 Jan 2, 2023
A lightweight Universal Windows proxy app based on https://github.com/eycorsican/leaf

Maple A lightweight Universal Windows proxy app based on https://github.com/eycorsican/leaf Features Configuration management Outbound network adapter

YtFlow 784 Jan 6, 2023