runemadsen/HTTP-Requests-for-Processing

HTTP POST request for sending a file to the server

Opened this issue · 4 comments

How do I go about posting a file (eg. a picture) using POST request from this library. How to write the file data on the server(as we did with server.write(filedata);)? What headers to explicitely include using addHeader(); ?

+1

Would be nice. However if you need this, check also the PostToWeb library:
http://libraries.seltar.org/postToWeb/
This works fine.

jtoy commented

+1 does this library support files? doesnt seem like it.

jtoy commented

it does support it, i think the documentation needs to be cleaned up:

post.addFile("param",full_path);