How to call web service running on Apache on same dev Mac?
Posted: Thu Sep 10, 2015 2:56 pm
Hi there,
Hopefully this is a simple question to answer for SpiderBasic experts.
Currently I have an API serving JSON responses on HTTP port 80 (Apache) on my local dev Mac.
If I curl the API locally I get responses. Similarly, if I set up a web page page served locally that makes a GET or POST request to my API, I get the correct data back.
SpiderBasic is serving web pages on port 9080. Calling the same API from SpiderBasic leads to an HTTP error (not sure how to trap the exact one yet in SpiderBasic). Adding :80 to the API URL has no effect.
So the SpiderBasic rendered pages are, I guess, seeing the web service API as a different domain - how do I get around that? It must be a local dev scenario that lots of people have encountered already, so any advice welcome
Thank you
Hopefully this is a simple question to answer for SpiderBasic experts.
Currently I have an API serving JSON responses on HTTP port 80 (Apache) on my local dev Mac.
If I curl the API locally I get responses. Similarly, if I set up a web page page served locally that makes a GET or POST request to my API, I get the correct data back.
SpiderBasic is serving web pages on port 9080. Calling the same API from SpiderBasic leads to an HTTP error (not sure how to trap the exact one yet in SpiderBasic). Adding :80 to the API URL has no effect.
So the SpiderBasic rendered pages are, I guess, seeing the web service API as a different domain - how do I get around that? It must be a local dev scenario that lots of people have encountered already, so any advice welcome
Thank you
