Samchon Framework for CPP  1.0.0
http.hpp
1 #pragma once
2 
3 #include <iostream>
4 #include <samchon/library/HTTPLoader.hpp>
5 
6 namespace samchon
7 {
8 namespace examples
9 {
10 namespace http
11 {
12  void main()
13  {
14  using namespace std;
15  using namespace samchon::library;
16 
17  HTTPLoader loader("http://samchon.org/simulation/php/corporate/list.php", HTTPLoader::GET);
18  URLVariables data;
19  {
20  data["c"] = "order";
21  data["a"] = "outsourcing";
22  data["page"] = "2";
23  }
24 
25  //cout << "#size: " << loader.load(data).size() << endl;
26  string &str = loader.load(data).read<string>();
27  cout << str;
28  };
29 };
30 };
31 };
A http, web-page loader.
Definition: HTTPLoader.hpp:26
URLVariables class is for representing variables of HTTP.