C++ 如何压缩和解压缩URL C+中的xml+;
我用C++编写SAML SP,但不知道如何压缩XML。 {xmlCompressedandBase64encodedString} 现在C++ 如何压缩和解压缩URL C+中的xml+;,c++,xml,saml,C++,Xml,Saml,我用C++编写SAML SP,但不知道如何压缩XML。 {xmlCompressedandBase64encodedString} 现在xmlCompressedandBase64encodedString是有问题的部分,我知道Base64编码,但我不知道xml压缩 我的saml请求将如下所示: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <samlp:AuthnRequest xml
xmlCompressedandBase64encodedString
是有问题的部分,我知道Base64编码,但我不知道xml压缩
我的saml请求将如下所示:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<samlp:AuthnRequest
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:x500="urn:oasis:names:tc:SAML:2.0:profiles:attribute:X500"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
ID="id-_Abcd1234&-rQjG"
Version="2.0"
IssueInstant="2018-05-03T06:02:22Z"
Destination="http://acme.com:16006/idp/samlv20">
<saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
https://flight.com::14213/sp
</saml:Issuer>
<samlp:NameIDPolicy AllowCreate="true"/>
</samlp:AuthnRequest>
https://flight.com::14213/sp
SamlRespone的解压也是如此。有一个指示,表明您应该使用DEFLATE althorithm
是实现DEFLATE算法的最著名的库之一。我听说Boost.iostream也可以使用zlib作为依赖项,但我不确定