SSL Giving me a headache for 3 days

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
liverock
Forum Newbie
Posts: 7
Joined: Wed May 17, 2006 3:44 am

SSL Giving me a headache for 3 days

Post by liverock »

Hi

I am trying to decode some data sent over by my client server over SSL in the following process:

a. The information will be sent via HTTP (SSL) to a my Web Server (URL)
b. The information will be in XML formats.
c. Each HTTP request send containing the XML result information will be contains a digital signature
(a hash on the result and encrypt on the hash).
This allows me to verify that the information sent is not tampered.

When I retrieve it, I get all junk data like:

Code: Select all

nfo=%253C%253Fxml%2Bversion%253D%25221.0%2522%2Bencoding%253D%2522UTF-8%2522%253F%253E%253CRESULTS%253E%253CRESULT%2Bdraw%253D
What is going on here?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

looks like the text has been passed through rawurlencode() twice.. use urldecode() twice to get it back?
Post Reply