Re: [naviserver-devel] Content-Disposition: form-data - Apparently wrong format

2021-02-24 Thread Gustaf Neumann
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    

Re: [naviserver-devel] What's the replacement of [curl -u] in [ns_http]

2021-02-24 Thread Gustaf Neumann
On 24.02.21 17:46, Iuri de Araujo Sampaio wrote: Even though, I still have no idea why that happens. please re-read the following lines of my last answer. What is unclear about  this? Since it works now, it is clear, that the line-breaks caused you troubles. The line-breaks are usual for

[naviserver-devel] Content-Disposition: form-data - Apparently wrong format

2021-02-24 Thread Iuri de Araujo Sampaio
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 :

Re: [naviserver-devel] What's the replacement of [curl -u] in [ns_http]

2021-02-24 Thread Iuri de Araujo Sampaio
Thanks Gustaf, [join $hash “”] was the solution. It works now! Even though, I still have no idea why that happens. I’m using ns_* procs, simple and straight forward. As in: > % set h [ns_set create] > % ns_set update $h Authorization "Basic [ns_base64encode guest:guest]" > % ns_http