How to make an http POST to fill a multiform and upload a file (ofxHttpUtils & ofxHTTP)

Hi all,
I want to fill this html multiform to upload a file:

<form enctype="multipart/form-data" method="post" action="/writexml/">

  <label for="id_title">Title:</label><input id="id_title" name="title" type="text" />
  <label for="id_xml">Xml:</label><input id="id_xml" name="xml" type="file" />
  <input type="submit">


On the web browser I just need to fill a chosen name, pick a file and click send.
I tried with ofxHttpUtils from @arturo but the server do not receive nothing filled, and it replays that all fields are required.
My code looks like the included on the example:

ofxHttpForm form;
form.action = "";
form.method = OFX_HTTP_POST;
form.addFormField("id_title", "fill with text name");

I can’t figure out how to make it work. I have seen other related posts like this one:

Maybe I can try to make it work with ofxHTTP from @bakercp, like he explains on the above post link, but is hard to understand with my beginner level.

Anyone has any helping tip?

EDIT: I tried too without success:

form.addFormField("title", "fill with text name");
1 Like