#include <iostream>
#include <string>
#include "SysPlusPlus"
#include "ComPlusPlus"

int main(int argc, char *argv []) {

compp::HTTPHeader Resp;
std::string str = "KeyWord1:Value1\nKeyword2: Value2\n            K3           :V3\n      K4   : V4     \nhhhhhhhhhhhhhhhh";




Resp.AnalyseHeader(str);

Resp.Dump();	
	

compp::HTTPBase base;
int port;
std::string host, what;

base.AnalyseURL( "http://parsifal", host, what, port );
std::cout << " Host: " << host << " what " << what  << " port " << port << "\n";

base.AnalyseURL( "http://parsifal/index.html", host, what, port );
std::cout << " Host: " << host << " what " << what  << " port " << port << "\n";

base.AnalyseURL( "http://parsifal/index.html:8001", host, what, port );
std::cout << " Host: " << host << " what " << what  << " port " << port << "\n";

base.AnalyseURL( "http://parsifal:8001", host, what, port );
std::cout << " Host: " << host << " what " << what  << " port " << port << "\n";

base.AnalyseURL( "http://parsifal:8001/Index.html", host, what, port );
std::cout << " Host: " << host << " what " << what  << " port " << port << "\n";


return 0;	
}
