Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unsafe charrectors in HTTP requests url

 
chandu gattu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL,



When i am posting a HTTP URL with unsafe char(like #) to a web-application in tomcat. Is the url with usafe char comes to tomcat or the unsafe-char url is brokes in HTTP request posting application.




myunsafe char url: http://localhost:8080/web?userName=chandu&firstName=chandra#shaker.




When i am try to post the request using the above url, entire url goes to the tomcat server or partial of the url is comes to tomcat
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to ranch!

When i am try to post the request using the above url, entire url goes to the tomcat server or partial of the url is comes to tomcat

didn't get what you mean by above statement. would you please make it simpler.

but its like may need URLEconding.
check here.

hope it helps.
 
chandu gattu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

thanks for giving reply as quickly.

when i am trying to post HTTP request with URL containing the unsafe char. when it will be encoded means while posting the HTTP Request or when request goes to requester application(Servlet or web app). Is any way to handle the unsafe char in web application or servlet.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you missed the link I shared in my last reply. now I suggest to hit that link and check URLEncoder and URLDecoder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic