Link to home
Start Free TrialLog in
Avatar of sixdegree
sixdegree

asked on

Response Redirect Semicolon Problem

When I do the below code, ASP is taking out the semicolons and going to:

http://z1.adserver.com/w/cp.x%3Bmid%3D15664%3Brid%3D322%3Btid%3D3%3Bev%3D2%3Bdt%3D3%3Bac%3D76%3Bc%3D71%3B

I need the semicolons to stay.  Please help.

============================================================
<%
url = "http://z1.adserver.com/w/cp.x;mid=15664;rid=322;tid=3;ev=2;dt=3;ac=76;c=71;"
response.redirect(url)
%>
============================================================
Avatar of apresto
apresto
Flag of Italy image

semi colons are invalid in the url,

why do you need them, maybe you can replace them with another character and convert them back at serverside?

what are they for?
or just use & if you want to seperate the variables, are they variables and valu key pairs?
Avatar of sixdegree
sixdegree

ASKER

They're not invalid.  If you copy/paste it into your address browser it works perfectly fine.

http://z1.adserver.com/w/cp.x;mid=15664;rid=322;tid=3;ev=2;dt=3;ac=76;c=71;
sorry i didnt mean invalid, but if you parse them with asp they are converted.

why dont you try and wrap this around it.

server.URLencode()
This is the page i'm working with:

http://register01.playbingolive.com/upsellit.asp?do=register

it redirects using:

url = "http://z1.adserver.com/w/cp.x;mid=15664;rid=322;tid=3;ev=2;dt=3;ac=76;c=71;"
response.redirect(server.URLencode(url))

Which doesn't work either.

Try:

url = "http://z1.adserver.com/w/" & Server.URLEncode("cp.x;mid=15664;rid=322;tid=3;ev=2;dt=3;ac=76;c=71;")
ASKER CERTIFIED SOLUTION
Avatar of leos_
leos_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial