Is it possible to access file from server having url "www.domain_name/filename.jsp/"
posted 4 years ago
Friend if anybody know about this, then please help me with this issue...
i deploye one project on linux server. now my seniour buy one payment getway. Api provider don't have there static ip address, and wants us to create one page with name register. So they can hit on our register page, and when they hit on our register page we have to save there ip and then send them parameters. or in other words, we need there ip to create api.
So as per there request we create "register.jsp" page. This access this page directly by typing, "www.domainname/register.jsp" or "domain-ip/register.jsp" in browser. its working fine.
When, i try to hit my own page by using java.net class socket method.
GET /register.jsp HTTP/1.1, here domain name is save and get attached before "register.jsp".
i get output- HTTP/1.1 200 ok (text/html) , which is right and as aspected.
But our api provider hiting our site with GET /register.jsp/ HTTP/1.1, they attached extra '/' after "register.jsp". and then they get output--HTTP/1.1 404 Not found (text/html)
and they are blaming us, that we have some mistake in our page.
So my qustion here is, its really possible to create page with '/' at the end. i know '/' came only after folder name, but those api provider wants us to create page having '/' at the end so they can get HTTP/1.1 200 ok output.
Please, if somebody have any knowledge about this, help me...