Is it possible to send back JSON responses with a file or attachment?
Posted: Mon Jul 03, 2023 4:55 am
Hi,
The case is, im using postman/swagger to send the request, and i want to return the response with a file or attachment (which is i need to send using multipart is it?).
Is it possible to use YAJL or HTTPAPI?
i've tried to use yajl_writeStdout() from YAJL, when i read the YAJLR4 on the yajl_writeStdout(), i can only change the HTTP Headers is it?
and i've tried to use EXAMPLE7 as well from HTTPAPI, on that example, the http_url_post_stmf will send the post request instead of return the response is it?
CMIIW and sorry im a newly
Thanks before,
RianSuhito
The case is, im using postman/swagger to send the request, and i want to return the response with a file or attachment (which is i need to send using multipart is it?).
Is it possible to use YAJL or HTTPAPI?
i've tried to use yajl_writeStdout() from YAJL, when i read the YAJLR4 on the yajl_writeStdout(), i can only change the HTTP Headers is it?
and i've tried to use EXAMPLE7 as well from HTTPAPI, on that example, the http_url_post_stmf will send the post request instead of return the response is it?
CMIIW and sorry im a newly

Thanks before,
RianSuhito