Using localhost as URL in services
Posted: Tue Oct 08, 2013 9:41 pm
by Pasteur Miranda
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
Using localhost as URL in services
Posted: Tue Oct 08, 2013 9:44 pm
by maxkatz
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...
Using localhost as URL in services
Posted: Wed Oct 09, 2013 2:36 am
by Pasteur Miranda
Ok Max, thank you. I will use localhost only when running the app locally, when testing it in the browser.
Using localhost as URL in services
Posted: Wed Oct 09, 2013 2:59 am
by maxkatz
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.