Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

its possible to keep file with filename.jsp/ name  RSS feed

Vinod suryawanshi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 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...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!