Nujj
1
Need help converting a simple curl command to web component, if that's the correct approach.
Here are two examples from DL website:
// Power ON outlet 1
curl -u admin:1234 http://192.168.0.100/outlet?1=ON
// Power OFF outlet 2
curl http://admin:1234@192.168.0.100/outlet?2=OFF
I think I have the RequestHeaders formatted wrong:
Nujj
3
Hi Steve,
I am aware of the noted link and content. I can not figure out how to pass the username and password. Including them in the Url is not working...
Any further assistance is much appreciated...
TIMAI2
4
1 Like
Nujj
5
Thanks for the response...
Thanks for the response.
I tried the following, did not get an error but outlet 7 did not activate.
Once I'm logged in (the first time).
an html statement:
http://10.0.0.170/outlet?7=ON will work...
the following curl statement also works: curl
http://admin:1234@10.0.0.150/outlet?7=ON
TIMAI2
6
You do not appear to have converted the admin:pass to base64 or started the content with Basic as per the guidance....
Nujj
7
You are correct, I will try as per example and advise.
Nujj
8
That worked, thank you very much...
system
Closed
9
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.