(solved)user and password http command

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
riker1
Normal user
Posts: 344
Joined: 26 Dec 2017, 18:02

(solved)user and password http command

#1 Post by riker1 » 14 Sep 2020, 21:57

Hi

I was looking , but did not find it....
how to send user and password in http command

http://<espeasyip>/control?cmd=<command>

thanks for support

BR T
Last edited by riker1 on 15 Sep 2020, 10:26, edited 1 time in total.

TD-er
Core team member
Posts: 8729
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: user and password http command

#2 Post by TD-er » 14 Sep 2020, 23:02

What tool do you use for the http command?
Command line tool like Curl, or is it from another ESP?

riker1
Normal user
Posts: 344
Joined: 26 Dec 2017, 18:02

Re: user and password http command

#3 Post by riker1 » 15 Sep 2020, 06:40

Hi
Use http-request App which ist using curl
http Shortcuts

Thx

TD-er
Core team member
Posts: 8729
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: user and password http command

#4 Post by TD-er » 15 Sep 2020, 09:50

Have you tried something like this?

Code: Select all

curl --user username:password http://<espeasyip>/control?cmd=<command>
It is just the "basic authorization". Nothing fancy.

riker1
Normal user
Posts: 344
Joined: 26 Dec 2017, 18:02

Re: user and password http command

#5 Post by riker1 » 15 Sep 2020, 10:27

TD-er wrote: 15 Sep 2020, 09:50 Have you tried something like this?

Code: Select all

curl --user username:password http://<espeasyip>/control?cmd=<command>
It is just the "basic authorization". Nothing fancy.
working thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests