M
Michael
I am trying to integrate my ASP page with an external application that
sends me a QueryString that is URLEncoded and each Name and Value in
the QueryString is Base64 Encoded as well.
---------------------------------------------------------------
Sample QueryString:
MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ%3D%3DMjM3MzpiMTcxODYwOjc%3D%26NzQzMTpwcm9kQWdlbmN5SUQ6MTI%3D%3DMjcxNjowMDUxMjIwODo4%26MTA0MjE6cHJvZEFnZW5jeU5hbWU6MTQ%3D%3DMzA1NTA6REFVR0hFUlRZICYgQ08gSU5TIEJST0tFUlMgSU5DOjMw
---------------------------------------------------------------
I know what the named items in the QueryString are and accurately
Base64 encode them so that I see the text in the QueryString. But when
I try to get the matching value from the QueryString, I get an empty
string returned.
Request.QueryString("MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ%3D") = ''
Request.QueryString("MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ=") = ''
I tried looping through the name/value pairs in the QueryString but it
seems to think the entire QueryString is 1 named item with no value. I
put single quotes around each name and each value and got the
following:
'MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ==MjM3MzpiMTcxODYwOjc=&NzQzMTpwcm9kQWdlbmN5SUQ6MTI==MjcxNjowMDUxMjIwODo4&MTA0MjE6cHJvZEFnZW5jeU5hbWU6MTQ==MzA1NTA6REFVR0hFUlRZICYgQ08gSU5TIEJST0tFUlMgSU5DOjMw'
= ''
Any ideas how I can parse out each Base64-encoded name to to get the
matching Base64-encoded value?
Thanks,
Michael Levy
sends me a QueryString that is URLEncoded and each Name and Value in
the QueryString is Base64 Encoded as well.
---------------------------------------------------------------
Sample QueryString:
MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ%3D%3DMjM3MzpiMTcxODYwOjc%3D%26NzQzMTpwcm9kQWdlbmN5SUQ6MTI%3D%3DMjcxNjowMDUxMjIwODo4%26MTA0MjE6cHJvZEFnZW5jeU5hbWU6MTQ%3D%3DMzA1NTA6REFVR0hFUlRZICYgQ08gSU5TIEJST0tFUlMgSU5DOjMw
---------------------------------------------------------------
I know what the named items in the QueryString are and accurately
Base64 encode them so that I see the text in the QueryString. But when
I try to get the matching value from the QueryString, I get an empty
string returned.
Request.QueryString("MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ%3D") = ''
Request.QueryString("MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ=") = ''
I tried looping through the name/value pairs in the QueryString but it
seems to think the entire QueryString is 1 named item with no value. I
put single quotes around each name and each value and got the
following:
'MTAwMjg6cHJvZFByb2R1Y2VySUQ6MTQ==MjM3MzpiMTcxODYwOjc=&NzQzMTpwcm9kQWdlbmN5SUQ6MTI==MjcxNjowMDUxMjIwODo4&MTA0MjE6cHJvZEFnZW5jeU5hbWU6MTQ==MzA1NTA6REFVR0hFUlRZICYgQ08gSU5TIEJST0tFUlMgSU5DOjMw'
= ''
Any ideas how I can parse out each Base64-encoded name to to get the
matching Base64-encoded value?
Thanks,
Michael Levy