Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

Using localhost as URL in services

Hi,

Code: Select all

Is it possible create a service to access a REST service located in my local computer? That is, if I use an URL like [url=http://localhost:8080/rest/service]http://localhost:8080/rest/service[/url] will the service work? 

Thank you
maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Using localhost as URL in services

The only option is if you run the app locally on your computer. When you host the app int he cloud, the browser doesn't where localhost is.

Testing the won't be possible either.

You might also want to look at using Echo: http://docs.appery.io/documentation/r...

Pasteur Miranda
Posts: 0
Joined: Thu Aug 01, 2013 2:59 am

Using localhost as URL in services

Ok Max, thank you. I will use localhost only when running the app locally, when testing it in the browser.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Using localhost as URL in services

Just to add, you actually need to download the app and run it locally on your computer. Only then you should be able to use localhost.

Return to “Issues”