Hello
When you try to execute the command, a message about lack of authorization appears.
How to add a username and password ?
wgetasync"http://192.168.33.100/status"
result
<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
<BODY BGCOLOR="#cc9999"><H4>401 Unauthorized</H4>
Authorization required.
</BODY></HTML>
wgetasync problem esp32
-
- Posts: 15
- Joined: Wed Jun 28, 2023 7:20 am
- Been thanked: 1 time
- cicciocb
- Site Admin
- Posts: 2069
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 441 times
- Been thanked: 1364 times
- Contact:
Re: wgetasync problem esp32
You can use this format:
so, in yout case you must do
Code: [Local Link Removed for Guests]
http://username:password@example.com/
Code: [Local Link Removed for Guests]
wgetasync "http://login:password@192.168.33.100/status"
-
- Posts: 15
- Joined: Wed Jun 28, 2023 7:20 am
- Been thanked: 1 time
Re: wgetasync problem esp32
ok, it works, but the wgetresult$ function throws a messages out of memory
- cicciocb
- Site Admin
- Posts: 2069
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 441 times
- Been thanked: 1364 times
- Contact:
Re: wgetasync problem esp32
Probably the answer is too big for the RAM available in the chip.[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Apr 15, 2024 1:10 pm ok, it works, but the wgetresult$ function throws a messages out of memory
If you are using an ESP8266 this means that is time to change device
If you are using an ESP32, this means that you need a module with PSRAM
-
- Posts: 15
- Joined: Wed Jun 28, 2023 7:20 am
- Been thanked: 1 time
Re: wgetasync problem esp32
There was an error in the address, it should have been
wgetasync "http://login:password@192.168.33.100/status.html"
Now it works properly.
Thank you for your help.
wgetasync "http://login:password@192.168.33.100/status.html"
Now it works properly.
Thank you for your help.