HTTP Get with query
-
I want to use HTTP Get to access with a query.
For example, the following.
http://url?val1=aaa&val2=bbb
I can't seem to get this kind of access, even when I use the HTTP block.
Also, it does not seem to be possible to access this way by executing requests2.get(url_with_query).
In fact, when typing in the browser, it can be accessed correctly.
Why is this? -
@gwky55
Hi,
Example in MicroPython:... def setup(): global wlan, http_req M5.begin() wlan = network.WLAN(network.STA_IF) if wlan.isconnected(): print('Connected') http_req = requests2.get('https://test/test.php?val1=aaa&val2=bbb', headers={'Content-Type': 'application/json'}) print(http_req.status_code)
And UI Flow2