Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

double encoding of url  RSS feed

 
Vasim Patel
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any practical use of doubly encoding a url?

String enc = response.encodeURL(url);
String doubleenv = response.encodeURL(enc);

I came across a code which does this but was not able to figure out any use? Has anybody come across this scenario and felt the need for it?

regards
Vasim
 
Shankar Narayana
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try and see what happens to the url , I think it might be some programmers mistake.
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if you wanted to use a URL in a parameter in another URL? I haven't really thought this one through, mind you... Also doesn't appear to be what's happening in your example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!