aspose file tools
The moose likes Servlets and the fly likes unsafe charrectors in HTTP requests url Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 1318

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..
[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: 1318

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: unsafe charrectors in HTTP requests url
 
Similar Threads
deployment under tomcat
Stopping an deployed application
accessing jsp project from LAN
How to increase number of parellel ajax hits from same user!!
unable to view files in webapps