title: Send files to flask endpoints in python
body: <p>Given a flask server, I wish to <code>mimic</code> an HTTP request to it from another python file, it it possible?
  I.e
  Given the following python &quot;client&quot; application:</p>
  <pre><code>def send_img_to_flask(img_path,server_ip):
      request = Request(ip=server_ip,POST_parameters={'file':img_path})
  </code></pre>
  <p>And respectively the server endpoint will:</p>
  <pre><code>@app.route('/uploader', methods = ['GET', 'POST'])
  def upload_file():
     if request.method == 'POST':
        f = request.files['file']
        f.save(secure_filename(f.filename))
        return 'file uploaded successfully'
  </code></pre>