Home  >  Support  >  Support Forum  >  Do you have any PHP / cURL examples?
Notice! We've recently migrated to using a new forum, we hope you enjoy it. If you are an existing member and this is your first time visiting our new forum, please reset your password to be able to sign in.
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:
Code:
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)
Your M2M Expert™for Businessfor Developers
Newsletter SignupYouTubeGoogle+FacebookCopyright © 1996-2013 Digi International Inc. All rights reserved. Legal
...