-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API - HTTP Get Request No Password possible #1129
Comments
Does no one have any help for me ??? According to the description you should put a -user "admin:" -digest An example request, also in the wiki, would be extremely helpful! |
This issue is stale because it has been open 30 days with no activity. Comment or this will be closed in 7 days. |
Is there a chance for fixing this?1 |
Can you provide an error message? Are you using curl? |
Sorry, no error Message! |
Again: are you using curl? |
The command is only valid for curl. I do have the impression you're trying this via browser. The escaped url speeks that. There's nothing to fix here.... |
No, i don´t use curl. What ist the right request with setting a user and Password in shellys Userinterface? |
Your request url is correct. You have to get the authentication right, therefore you have to send the right http headers as defined in How to do this is dependant on you browser, i saw there might be some plugins. Again, there is nothing to fix here... |
Again, this works in every browser! How to set this string witht admin and password to get him work! http://192.168.178.120/rpc/Shelly.SetState?id=1&type=0&state={"state":false} ist working well. |
This works in every browser yes, the browser internally does https://en.wikipedia.org/wiki/Digest_access_authentication when calling the RPC backend via Javascript. What is your end use case of this? Maybe you can find a solution via cURL. You could also run reuse some of the Webpages Javascript and run that on your browser... |
@Spy-1 You can try |
and this is exactly this what doesn´t work! |
I can agree. It also doesn't work on my side |
This is not a bug. It is not supported currently and thus a feature request |
Can someone please give me assistance with an http request?
The following request works:
192.132.198.112/rpc/Shelly.SetState?id=1&type=0&state={%22state%22%3atrue}
However, if a password is set in the interface of the device, I can't get the request to work.
How and where do I set the password?
The text was updated successfully, but these errors were encountered: