8 #include <samchon/library/HTTPLoader.hpp> 9 #include <samchon/library/URLVariables.hpp> 10 #include <samchon/library/Charset.hpp> 20 # pragma comment(lib, "x64/Debug/SamchonFramework.lib") 22 # pragma comment(lib, "x64/Release/SamchonFramework.lib") 26 # pragma comment(lib, "Debug/SamchonFramework.lib") 28 # pragma comment(lib, "Release/SamchonFramework.lib") 36 void toClipboard(
const std::string &);
40 setlocale(LC_ALL,
"korean");
51 HTTPLoader loader(
"http://www.bomtvbiz.com/ad/?c=login", HTTPLoader::POST);
54 data[
"m_id"] =
"rprt01";
55 data[
"password"] =
"1234";
58 string &str = loader.load(data).read<
string>();
59 cout << str << endl << endl;
66 HTTPLoader loader(
"http://samchon.org/simulation/php/corporate/list.php", HTTPLoader::GET);
70 data[
"a"] =
"outsourcing";
75 string &str = loader.load(data).read<
string>();
80 HTTPLoader loader(Charset::toUTF8(
"http://www.bomtvbiz.com/dt/order_print/1448241706869/20151123_1448241706869_±èÇö¿ì_2¸í_±è ½Â ÁÖ.pdf"), HTTPLoader::GET);
84 ofstream file(
"E:\\test.pdf", ios::out | ios::binary);
85 file.write((
const char*)&data[0], data.size());
90 void toClipboard(
const string &str)
94 HGLOBAL hg = GlobalAlloc(GMEM_MOVEABLE, str.size() + 1);
101 memcpy(GlobalLock(hg), str.c_str(), str.size() + 1);
104 SetClipboardData(CF_TEXT, hg);
Top level namespace of products built from samchon.
URLVariables class is for representing variables of HTTP.