Issue regarding WebDemo setup

+2 votes
Hello everyone,

I am trying to get the WebDemo API to work on my computer after following every step from the tutorial.


- Running a local Apache web server on a Windows computer
- My issue is regarding the first lines of the index.php file :

where does the $_GET['chain'] come from ? It is basically the 5th code line and nothing happens before so I am wondering how this variable is setup. This variable is the base of all my problems given it prevents my computer from getting the right configuration.

- Trying to fix this, I manually set this variable to the name of my chain, I then get the HTTP Error 400. My question is then, is it possible, that even if my chain and my Apache server are on the same computer, I still have to configure my web demo considering my web site is on another server ?

My Apache is running on port 80 and address (e.g. localhost) and my chain is running only on my computer.


Thanks in advance and happy easter !
asked Apr 15, 2017 by anonymous

1 Answer

0 votes

In PHP $_GET['chain'] retrieves a parameter in the URL called chain, if it is present. I would recommend taking a look at your web server's error log to try to understand why the web demo is not working for you.

answered Apr 16, 2017 by MultiChain