Page 1 of 1

request.find() which gets the value instead of looking for a specific one

Posted: Wed Jun 17, 2020 10:41 am
by Anonymmm
Hello again,
Since my previous question got no answers, I shall attempt to make it much simpler to answer. A simple micropython web server tutorial used this code to see if a button was pressed:

Code: Select all

led_on = request.find('/?led=on')
Is there any alternative of this "request" command that just pulls what is send in the url, instead of looking for something specific?