Hi all

I am integrating my site with Protx Payment Gateway (and the support team are not helpful at all) and I am encountering a problem with the returned encrypted string they send back to my script. This is bizarre and I need advice!!

Basically I have narrowed the problem down to the following. I have created a simple script which collects and echos the $_REQUEST variable that is sent via the URL. An example of the url is as follows:

myscript.php?crypt=OyMAUzVGBhE1J1AiCU9BfVx3VgRoBXQ/JhtgP30dTTZYcl11YnBgXFtwAgJ3VEB1W3BDBGMEYEQwe3VxBUFAeV51WAInEgEdFzxBNAk2O2s+Mg9DL0cWDAIpXSsJSUB9XWZUFw5cN0k3PUAvWwsZPgwyB1g0FCUIBWhnMlcaFT4eIBtbdBIGETc9QC96Fk1+VHFdBmgHdCggG3cRBkQjCC4TPH4ObXIqOQxxZ3k4JA4lZiF5Fm10KBIsRiJHCiIoHjMCQ2d6HT07CWAEfDw0az0pHUMZWzYMJC1HMlgNTQMiEiN2DncaLDJudxEGKxU+GCoaChd1Bio+DXBhcxAWOSwvCgpqEmEtJS1XMkYcIzkMMhtEZ3odPTUAcQR/PDRrLCsBQjRAb1hOehp2Bw==

Now, when I echo this $_REQUEST['crypt'] value in my page, nothing shows up. Its as if the variable is empty! I have pulled my hair out all day on this!

HOWEVER - if i remove the last 2 equal signs from the crypt string, my $_REQUEST variable contains the string!

Has anyone any ideas why the hell this is happening?

What is so significant about the 2 equal signs in this string and why are they preventing my $_REQUEST variable to contain the string?

Please help!

    This works for me (although, I'd use $_GET preferably):

    <?php
    echo "crypt: " . $_REQUEST['crypt'];
    ?>

    calling it like:

    http://localhost/misc/crypt.php?crypt=OyMAUzVGBhE1J1AiCU9BfVx3VgRoBXQ/JhtgP30dTTZYcl11YnBgXFtwAgJ3VEB1W3BDBGMEYEQwe3VxBUFAeV51WAInEgEdFzxBNAk2O2s+Mg9DL0cWDAIpXSsJSUB9XWZUFw5cN0k3PUAvWwsZPgwyB1g0FCUIBWhnMlcaFT4eIBtbdBIGETc9QC96Fk1+VHFdBmgHdCggG3cRBkQjCC4TPH4ObXIqOQxxZ3k4JA4lZiF5Fm10KBIsRiJHCiIoHjMCQ2d6HT07CWAEfDw0az0pHUMZWzYMJC1HMlgNTQMiEiN2DncaLDJudxEGKxU+GCoaChd1Bio+DXBhcxAWOSwvCgpqEmEtJS1XMkYcIzkMMhtEZ3odPTUAcQR/PDRrLCsBQjRAb1hOehp2Bw==

    it echos:

    OyMAUzVGBhE1J1AiCU9BfVx3VgRoBXQ/JhtgP30dTTZYcl11YnBgXFtwAgJ3VEB1W3BDBGMEYEQwe3VxBUFAeV51WAInEgEdFzxBNAk2O2s Mg9DL0cWDAIpXSsJSUB9XWZUFw5cN0k3PUAvWwsZPgwyB1g0FCUIBWhnMlcaFT4eIBtbdBIGETc9QC96Fk1 VHFdBmgHdCggG3cRBkQjCC4TPH4ObXIqOQxxZ3k4JA4lZiF5Fm10KBIsRiJHCiIoHjMCQ2d6HT07CWAEfDw0az0pHUMZWzYMJC1HMlgNTQMiEiN2DncaLDJudxEGKxU GCoaChd1Bio DXBhcxAWOSwvCgpqEmEtJS1XMkYcIzkMMhtEZ3odPTUAcQR/PDRrLCsBQjRAb1hOehp2Bw==

      Hi stolzyboy

      I have just tried it myself on my local machine and it worked first time. Would this suggest to you there is something wrong with the configuartion of the external web server?

      Has anyone ever come across this before?

      I am sick of my life right now.

      :mad:

        Write a Reply...