Digital Loggers curl to Webcall

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:

https://www.google.com/search?q=curl+-u+admin%3A1234+http%3A%2F%2F192.168.0.100%2Foutlet%3F1%3DON&rlz=1C1CHBF_enUS887US887&oq=curl+-u+admin%3A1234+http%3A%2F%2F192.168.0.100%2Foutlet%3F1%3DON&aqs=chrome..69i57.1845j0j4&sourceid=chrome&ie=UTF-8

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...

Perhaps try this way:

https://puravidaapps.com/filedownload.php#restricted

1 Like

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

You do not appear to have converted the admin:pass to base64 or started the content with Basic as per the guidance....

You are correct, I will try as per example and advise.

That worked, thank you very much...

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.