Replies: 5 comments 4 replies
-
Don't forget the micro in MicroPython … everything's a subset. |
Beta Was this translation helpful? Give feedback.
-
You have any ideas how I can get the header info? |
Beta Was this translation helpful? Give feedback.
-
using your help(r) on mrequest... again any ideas? |
Beta Was this translation helpful? Give feedback.
-
Even when urequests.py doesn't have a method to read the headers, it has a mechanism to get them.
Sometimes it's very useful to read some code, so ... Use the source, Luke!
|
Beta Was this translation helpful? Give feedback.
-
So I have a choice of a modifyed urequest or mrequests mrequests does work @scruss Christopher Arndt of mrequests Trying to find a fast fix put me into sensory overload. `# MREQUESTS EXAMPLE r = requests.head('https://www.w3schools.com/python/demopage.php', save_headers=True)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
esp32-20220618-v1.19.1.bin
Trying to return headers from w3schools...
https://www.w3schools.com/python/showpython.asp?filename=demo_requests_head
Responce....
This is a simple call, what am I missing??
got a r.status_code = 200
Also looked at mrequests with same outcome...
Using Thunder Client worked...

Add code... formatting hard to read.
(Edit by @jimmo to add code formatting)
Beta Was this translation helpful? Give feedback.
All reactions