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)
%>
========================== ========== ========== ========== ====
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)
%>
==========================
or just use & if you want to seperate the variables, are they variables and valu key pairs?
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;
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()
why dont you try and wrap this around it.
server.URLencode()
ASKER
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.U RLencode(u rl))
Which doesn't work either.
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.U
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=7 1;")
url = "http://z1.adserver.com/w/" & Server.URLEncode("cp.x;mid
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
why do you need them, maybe you can replace them with another character and convert them back at serverside?
what are they for?