Support conversion of linkshere
[dueringa_WikiWalker.git] / lib / LUrlParser / Example.cpp
blobd115c0531b6f9e4915528d29b82b4ddea0003fcd
1 #include <string>
2 #include <iostream>
4 #include "LUrlParser.h"
6 using namespace std;
7 using LUrlParser::clParseURL;
9 int main()
11 clParseURL URL = clParseURL::ParseURL( "https://John:Dow@github.com:80/corporateshark/LUrlParser/?&query=ssl#q=frag" );
13 if ( URL.IsValid() )
15 cout << "Scheme : " << URL.m_Scheme << endl;
16 cout << "Host : " << URL.m_Host << endl;
17 cout << "Port : " << URL.m_Port << endl;
18 cout << "Path : " << URL.m_Path << endl;
19 cout << "Query : " << URL.m_Query << endl;
20 cout << "Fragment : " << URL.m_Fragment << endl;
21 cout << "User name : " << URL.m_UserName << endl;
22 cout << "Password : " << URL.m_Password << endl;
24 else
26 cout << "Parsing error: " << URL.m_ErrorCode << endl;
29 return 0;