First off, I want to truly commend lupingblade for making a KICK BUTT application. HaikuHelper is mind-blowingly good stuff, and the API/JSON implentation is *TRULY* genius - platform independent, universally supported extendability. It is perfect for using a more robust, persistent data storage language to develop some serious business logic Seriously, bravo guys.
Okay quick issue. I installed ColdFusion 10 as an application server on the same machine running HaikuHelper. ColdFusion has the <cfhttp> tag which allows for simple HTTP get and posts. I entered the information in as follows but get 401 auth errors from HaikuHelper every time. Browsing the same resource via a web browser on either the machine running HH, or on another machine on the LAN, works perfectly (as long as I enter my username/password credentials as configured in the HH panel).
Although you may not have experience with CF, the code is pretty easy to figure out here:
<cfhttp port="9399"
method="get"
url="http://localhost/api/controller.areas"
username="hai1-ext"
password="1234"
result="jsonAreas" />
I have tried putting username, password and port directly in the URL string to no avail. I have also tried putting a Safari useragent string in as well (CF passes this on as the requesting user agent so that you can mimic a user browser session). Nothing is working.
Again, I can browse the controller.areas page just fine from the actual machine via Safari.
Is there something dumb I'm missing on authentication here? Cannot figure this one out.
Okay quick issue. I installed ColdFusion 10 as an application server on the same machine running HaikuHelper. ColdFusion has the <cfhttp> tag which allows for simple HTTP get and posts. I entered the information in as follows but get 401 auth errors from HaikuHelper every time. Browsing the same resource via a web browser on either the machine running HH, or on another machine on the LAN, works perfectly (as long as I enter my username/password credentials as configured in the HH panel).
Although you may not have experience with CF, the code is pretty easy to figure out here:
<cfhttp port="9399"
method="get"
url="http://localhost/api/controller.areas"
username="hai1-ext"
password="1234"
result="jsonAreas" />
I have tried putting username, password and port directly in the URL string to no avail. I have also tried putting a Safari useragent string in as well (CF passes this on as the requesting user agent so that you can mimic a user browser session). Nothing is working.
Again, I can browse the controller.areas page just fine from the actual machine via Safari.
Is there something dumb I'm missing on authentication here? Cannot figure this one out.