Jump to content


Photo

Response.Redirect w/ QueryString values


  • This topic is locked This topic is locked
3 replies to this topic

#1 huegumper

huegumper

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 20 February 2003 - 12:00 PM

Have any of you ever come across this behaviour?

After completing processing my own processing I build the destination URL as a string (Server.URLEncode'ing the params) and Response.Redirect( strURL ) to PayPal's site.


For reasons unknown the link appears in the browser (both IE 6 and NS 4.7) with the equal signs replaced with '%3D' as though it were URLencoded by the Response.Redirect. Apparently the PaPal site doesn't know what to make of '%3D' b/c I'm taken not to the transaction page as expected but to PayPal's front page.


Now if I put the string in a link: (<a href=" & strURL & ">Continue</a>) it works beautifully. However, the extra step of clicking 'Continue' disrupts the flow of the system and seems terribly unecessary.


Any ideas or comments will be greatly appreciated.


#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 20 February 2003 - 02:44 PM

Does it look like the Response.Redirect function is mis-encoding the URL? The URL you see in the Address bar should have &'s and ='s, not the %xx equivalents.

I couldn't find much on the matter except this: http://www.learnasp.com/learn/encode

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#3 Sinjitsui

Sinjitsui

    Member

  • Members
  • PipPip
  • 10 posts

Posted 21 February 2003 - 02:51 PM

huegumper look under Paypal Solutions /Subscriptions
...
I have been communicating with paypal_pb about this same issue with no resolution. If you find one, please let me know and I will do the same for you.

#4 Brido

Brido

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 20 October 2003 - 07:49 PM

To solve this problem you need to put a ? at the end of your url just before the start of the QueryString. This will keep the = signs from changing to %3d.

EX:
URL=("https://www.paypal.com/xclick?business=Name%40Business.com")
response.redirect(URL)


Brido




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users