Replies: 2 comments 5 replies
-
Just to help narrow the search ... which device? I recall a thread that involved Microdot as a webserver and this issue. Try searching the old forum. Actually, there is a page of hits here. |
Beta Was this translation helpful? Give feedback.
5 replies
-
urequests has had an upgrade apparently https://github.com/orgs/micropython/discussions/10788 maybe the newer version might behave more like python's requests? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using Micropython's urequests module to access a website but it returns 403 Access Denied error. However, when I use Python's requests module to access the same website, it returns the actual content of the website.
When using urequests:
Returns:
b'<HTML><HEAD>\n<TITLE>Access Denied</TITLE>\n</HEAD><BODY>\n<H1>Access Denied</H1>\n \nYou don\'t have permission to access "http://www.zara.com/es/es/blazer-traje-estructura-p00706334.html?" on this server.<P>\nReference #18.c4d31102.1677369242.52175e1f\n</BODY>\n</HTML>\n'
When using Python's requests:
It returns the actual content of the website.
I've tried looking what could cause this problem but haven't been able to make urequests behave like requests.
Beta Was this translation helpful? Give feedback.
All reactions