This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes unsafe charrectors in HTTP requests url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "unsafe charrectors in HTTP requests url" Watch "unsafe charrectors in HTTP requests url" New topic
Author

unsafe charrectors in HTTP requests url

chandu gattu
Greenhorn

Joined: Nov 02, 2011
Posts: 3
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

Joined: Dec 06, 2005
Posts: 1321

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.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
chandu gattu
Greenhorn

Joined: Nov 02, 2011
Posts: 3
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

Joined: Dec 06, 2005
Posts: 1321

I think you missed the link I shared in my last reply. now I suggest to hit that link and check URLEncoder and URLDecoder.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unsafe charrectors in HTTP requests url
 
Similar Threads
How to increase number of parellel ajax hits from same user!!
unable to view files in webapps
accessing jsp project from LAN
deployment under tomcat
Stopping an deployed application