![]() |
Kurlyk
|
#include <iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include <kurlyk.hpp>
Go to the source code of this file.
Functions | |
std::unordered_map< std::string, std::string > | read_proxy_config (const std::string &filename) |
Reads proxy configuration from a text file. | |
void | print_response (const kurlyk::HttpResponsePtr &response) |
int | main () |
int main | ( | ) |
Definition at line 45 of file http_client_proxy_example.cpp.
void print_response | ( | const kurlyk::HttpResponsePtr & | response | ) |
Definition at line 35 of file http_client_proxy_example.cpp.
std::unordered_map< std::string, std::string > read_proxy_config | ( | const std::string & | filename | ) |
Reads proxy configuration from a text file.
filename | Path to the configuration file. |
The configuration file format (proxy_config.txt) should be as follows:
Only proxy_ip
and proxy_port
are required. proxy_username
and proxy_password
are optional and will only be used if present in the file.
Definition at line 20 of file http_client_proxy_example.cpp.