Dear Iuri
"ns_http" does not do magic transformation on the POST data just by
providing different header fields. You have to provide the correct
formdata yourself. You are providing apparently the data in the wrong
format.
However, since you are using OpenACS, you should be able to use
util::http::post ... -formvars formvars ... -multipart ...
See [1] for details
-gn
[1] https://openacs.org/api-doc/proc-view?proc=util::http::post&source_p=1
On 24.02.21 19:08, Iuri de Araujo Sampaio wrote:
Hello there,
How would I achieve such format for a POST data request, using ns_procs?
[24/Feb/2021:14:52:13][30433.7efbf3d70700][-conn:qonteo:default:0:162-]
Notice: COENTNT ----------------------------674349094811372605992454\x0d
: Content-Disposition: form-data; name="To"\x0d
: \x0d
: whatsapp:+18474048771\x0d
: ----------------------------674349094811372605992454\x0d
: Content-Disposition: form-data; name="From"\x0d
: \x0d
: whatsapp:+14155238886\x0d
: ----------------------------674349094811372605992454\x0d
: Content-Disposition: form-data; name="Body"\x0d
: \x0d
: Your appointment is coming up on July 21 at 3PM\x0d
: ----------------------------674349094811372605992454--\x0d
:
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel