title: Convert client requests to proper requests for custom highchart node export server
body: <p>Im trying to export images by a custom node export server. server is running and when I send requests directly to server everything is fine.</p>
  <pre><code>    exporting: {
      url: &quot;http://ip:7779&quot;
  },
  </code></pre>
  <p>But for some security reasons first I need to send request to my flask server, I checked incoming request and it contain this values:</p>
  <pre><code>CombinedMultiDict([ImmutableMultiDict([]), ImmutableMultiDict([('width', u'0'), ('scale', u'2'), ('type', u'image/png'), ('filename', u'chart'), ('svg', u'&lt;svg xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; version=&quot;1.1&quot; class=&quot;highcharts-root&quot; ...omited!')])
  </code></pre>
  <p>and content type is like <code>multipart/form-data; boundary=----WebKitFormBoundaryt7Gcilm12pNBmSab</code></p>
  <p>so I changed my code:</p>
  <pre><code>    url: &quot;/highchart&quot;
  },
  </code></pre>
  <pre><code>@app.route('/highchart', methods=[&quot;GET&quot;, &quot;POST&quot;])
  @login_required
  def highchart_export():
      try:
          data = {}
          for i in request.values:
              data[i] = request.values[i]
          response = requests.post('http://0.0.0.0:7779',data=data)
          return response.text, response.status_code, response.headers.items()
      except:
          print traceback.format_exc(sys.exc_info())
  
  </code></pre>
  <p>But it not work. I just get an image with text &quot;<em>It appears that we don't support this file format.</em>&quot;</p>