Created
September 21, 2015 05:47
-
-
Save povilasb/46ff551e3510b3ca631f to your computer and use it in GitHub Desktop.
Create proxy authorization header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include "base64.h" | |
std::string | |
http_make_proxy_basic_auth_header(const std::string& username, | |
const std::string& password) | |
{ | |
return "Proxy-Authorization: Basic " + base64_encode(username, password); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment