Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
rusconidesigner 4
Dear All,
Is it possible to make a http request with Digest Auth in a virtual device?
Thank you in advance
[ Added: 2014-07-01, 16:28 ]
After many tests, I've found a solution:
What you need:
- a Webserver running php 5.0 or above
- Download
Please login or register to see this link.
php class- a simple php script with the http address and your authentication
- a virtual device that recall the php script
You can find the documentation about the authentication script
Please login or register to see this link.
Personally I've used this code:
Please login or register to see this code.
If you don't want to see the debug of the http request, cancel this code:
Please login or register to see this code.
IMPORTANT: copy the nuSoap "lib" folder in the same directory of your script on your webserver, otherwise you must change the path:
Please login or register to see this code.
In the virtual device add a button with this code:
Please login or register to see this code.
Finally, I can connect my Toshiba TV!
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.