Forums Register Login

unsafe charrectors in HTTP requests url

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
I think you missed the link I shared in my last reply. now I suggest to hit that link and check URLEncoder and URLDecoder.
We don't have time to be charming! Quick, read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1370 times.
Similar Threads
deployment under tomcat
How to increase number of parellel ajax hits from same user!!
accessing jsp project from LAN
unable to view files in webapps
Stopping an deployed application
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:07:43.