Home/Support/Support Forum/Do you have any PHP / cURL examples?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Do you have any PHP / cURL examples?

0 votes
I have created a simple php script which should read the list of devices with PHP and cURL.

For some reason, the request always fails and the result is "HTTP Status 401 - Bad credentials". However, the username and the password should be correct, because I can use them successfully with the browser.

It is obvious that there is some kind of trivial error in the script, but I just cannot find it.

Do you have any PHP / cURL examples?
asked Sep 6, 2013 in Web Services by samimaisniemi New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
This seems to work fine for me:
curl -u username:password http://login.etherios.com/ws/UserInfo

Can you show what you are trying?
answered Oct 2, 2013 by ryanbezdicek New to the Community (1 point)