<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HTTP Get with query]]></title><description><![CDATA[<p dir="auto">I want to use HTTP Get to access with a query.<br />
For example, the following.<br />
<a href="http://url?val1=aaa&amp;val2=bbb" target="_blank" rel="noopener noreferrer nofollow ugc">http://url?val1=aaa&amp;val2=bbb</a><br />
I can't seem to get this kind of access, even when I use the HTTP block.<br />
Also, it does not seem to be possible to access this way by executing requests2.get(url_with_query).<br />
In fact, when typing in the browser, it can be accessed correctly.<br />
Why is this?</p>
]]></description><link>https://community.m5stack.com/topic/7628/http-get-with-query</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:12:38 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7628.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jun 2025 16:04:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HTTP Get with query on Sat, 21 Jun 2025 08:55:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gwky55" aria-label="Profile: gwky55">@<bdi>gwky55</bdi></a><br />
Hi,<br />
Example in MicroPython:</p>
<pre><code>...
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&amp;val2=bbb', headers={'Content-Type': 'application/json'})
  print(http_req.status_code)
</code></pre>
<p dir="auto">And UI Flow2<br />
<img src="/assets/uploads/files/1750496079077-http-get.png" alt="http GET.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/29298</link><guid isPermaLink="true">https://community.m5stack.com/post/29298</guid><dc:creator><![CDATA[glabasnat]]></dc:creator><pubDate>Sat, 21 Jun 2025 08:55:48 GMT</pubDate></item></channel></rss>