title: Python - Using socket to construct URL for external Flask server's view function
body: <p>I am developing a desktop application that must send a specified url to a Flask application hosted online, and subsequently receive data from the same Flask app. 2 applications communicating back &amp; forth. I am able to make GET and POST requests to this Flask app, but I am unaware of how to construct specific URL's which include arguments for the Flask app to receive via <code>request.args.get()</code></p>
  
  <p>Thus far my ability hasn't been entirely erroneous. I can send a request <code>GET / HTTP/1.1\nHost : \r\n</code> which in turn receives something like <code>b'HTTP/1.0 200 OK\r\n'</code></p>
  
  <p>Which is well and good, I got the encoding part down.</p>
  
  <p>Beyond this I am at a loss as the Flask view function needs to acquire an argument <code>arg</code> from a specific url -
   something like <em>myFlaskApp.com/viewfunction?h=arg</em></p>
  
  <p>What would be an at least <em>decent</em> form if not a minimal / pragmatic way of practicing this kind of communication? I haven't much code to show for this one; I would like to leave any stratagem open for debate. I hope you can understand. Thank you!</p>
  
  <p>P.S. +&lt;3 if you also show me how to receive and decode the Flask server's view function return value on my app client. Assumed to be an arbitrary string.</p>