Closed fleboulch closed 5 years ago
I'm trying to pass a string (e.g.: "Hello World") instead of a file in the request body when using the microservice?
CURL request with a file (working fine)
curl -X POST \ 'http://localhost:8081/convert?auth=arachnys-weaver&ext=html' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F file=@/home/florent/tmp/athena.html
CURL request with string content (bad request)
curl -X POST \ 'http://localhost:8081/convert?auth=arachnys-weaver&ext=html' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F 'file=<html>Hello</html>'
My content-type header is maybe misconfigured
content-type
seems like a duplicate of #180
I'm trying to pass a string (e.g.: "Hello World") instead of a file in the request body when using the microservice?
CURL request with a file (working fine)
CURL request with string content (bad request)
My
content-type
header is maybe misconfigured