title: How to iterate through args (name and value) of flask request
body: <p>Here's my code:</p>
  <pre><code>#http://silvo/ESPresso.dll/UpdateDevice?DeviceName=BlueForceTag&amp;DeviceMac=&amp;DeviceSerial=ABBF0002&amp;TxCount=4&amp;Lat=-33.751320&amp;Long=18.533993&amp;BattLevel=4.05&amp;RSSI=-94&amp;hdop=1.20&amp;sats=9&amp;interval=600000
  
  from flask import Flask, request
  
  app = Flask(__name__)
  
  @app.route('/ESPresso.dll/UpdateDevice', methods=['GET'])
  
  def index():
      page_response=&quot;&quot;
      for arg in request.args:
          page_response+=str(arg)
      return page_response
  
  app.run()
  </code></pre>
  <p>I would like to replace the code in index() to return a text list of all arguments passed in the path with name = value format. e.g. from the example URL at the top:</p>
  <pre><code>DeviceName=BlueForceTag
  DeviceMac=
  DeviceSerial=ABBF0002
  </code></pre>
  <p>etc.</p>
  <p>Currently my code returns</p>
  <pre><code>DeviceNameDeviceMacDeviceSerialTxCountLatLongBattLevelRSSIhdopsatsinterval
  </code></pre>
  <p>and I can't get hold of the individual &quot;name&quot; / &quot;value&quot; properties of the arg object.</p>
  <p>I'm obviously missing something fundamental (probably Python related). Any help appreciated.</p>