Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Prevent from replacing double slashes with one in url

931373Apr 24 2012 — edited Apr 25 2012
Hello every body,
I'm trying to send a post request to some url, but that url has double slashes (other than http://) in the middle, like

http://someDomain.labla.com//somethingWithParameters

server refuses my request. the reason is that java turns this url into

http://someDomain.labla.com/somethingWithParameters

some where in java, every double slashed url validates and turns into oneslashed.
How can i prevent this ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2012
Added on Apr 24 2012
16 comments
1,832 views