[naviserver-devel] NaviServer installation script and sources

2017-03-02 Thread iuri
/naviserver/naviserver-4.99.14.tar.gz Has anyone got the same problem?Best wishes,Iuri -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm

Re: [naviserver-devel] ns_http request results HTTP0

2017-04-02 Thread iuri
wEAioUsXYYp50yawC3-1Fsu7lS0NyqWF_2f23kiqf8CyN_hwUrn4vhlLcZJgkxu2wHrjfumLaD70X8lvQuRGzPhEq2Tt_pyRg80pKnSjL1RfMZ3noI_8a025sYFUJFNKE59a_cAWYuXaCZBkqE9OjEOg6y_qDkYFc2ocJ0XRos42QviwvDo&client_id=419233248412711 is deprecated. Use 'ns_http' instead!Best wishes,Iuri Original Message Subject: Re: [naviserver-devel] ns_http request results HTTP0 From:

Re: [naviserver-devel] Substitute for ns_htmlencode

2017-04-02 Thread iuri
:) Original Message Subject: Re: [naviserver-devel] Substitute for ns_htmlencode From: Gustaf Neumann <neum...@wu.ac.at> Date: Sun, April 02, 2017 2:18 am To: naviserver-devel@lists.sourceforge.net Am 01.04.17 um 20:58 schrieb Iuri Sampaio: > If there was never a ns_h

Re: [naviserver-devel] NS_ModuleInit Error - Installation Script

2019-03-11 Thread iuri
src/naviserver-4.99.18/install-sh -c install-sh /usr/local/ns/bin/The documentation is installed under: /usr/local/ns/pages/docCongratulations, you have installed NaviServer. Original Message Subject: [naviserver-devel] NS_ModuleInit Error - Installation Script From: Iuri Samp

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-19 Thread iuri
a ns_http call From: Gustaf Neumann <neum...@wu.ac.at> Date: Tue, November 19, 2019 3:35 am To: naviserver-devel@lists.sourceforge.net On 17.11.19 18:00, Iuri Sampaio wrote: Do you still get successful results ? https://iurix.com/paypal-get-token No sure, what you want me to tes

[naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-23 Thread iuri
Hi there,In attempt to register PUT in my NS instalation  ( ie. HTTP PUT method), I added the following line, within  /tcl/http-handlers-init.tcl library :ns_register_tcl -options {stream stricterror} -- PUT /REST/*.tclI also try the simplest call:  ns_register_tcl PUT /REST/*.tclThen, within /REST

[naviserver-devel] Verifying HMAC signature [ns_crypto::hmac ... ]

2020-05-23 Thread iuri
Hi there,How can I verify HMAC signatures, using [ns_crypto::hmac ...]?For example, one has sent an encrypted message:set secret_message [ns_crypto::hmac string -digest sha256 "Abracadabra" "What is the magic word?"]... and another wants to verify integrity and authenticity of that message in t

[naviserver-devel] Verifying HMAC signature [ns_crypto::hmac ... ]

2020-05-25 Thread IURI
Hi there, How can I verify HMAC signatures, using [ns_crypto::hmac ...]? For example, one has sent an encrypted message: set secret_message [ns_crypto::hmac string -digest sha256 "Abracadabra" "What is the magic word?"] ... and another wants to verify integrity and authenticity of that messa

Re: [naviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char?

2020-05-26 Thread iuri
aviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char? From: Gustaf Neumann <neum...@wu.ac.at> Date: Tue, May 26, 2020 12:27 am To: naviserver-devel@lists.sourceforge.net Iuri, The nsc_crypto::hmac performs the HMAC  (Keyed-Hashing for

[naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-12 Thread Iuri Sampaio
there's a problem with apt-get installation but I'm still digging in. The script is a simple line as bellow: sleep 4 exec /usr/local/ns/bin/nsd -t /usr/local/ns/iurix.tcl -u iurix -g web -b 192.199.241.135:80 How do I setup NS automatically start supervisor correctly? Best w

Re: [naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-12 Thread Iuri Sampaio
13:52, Cyan Ogilvie wrote: Maybe add -i Cyan On Wed, Oct 12, 2016 at 5:59 PM, Iuri Sampaio <mailto:i...@iurix.com>> wrote: Hi there, In order to get NS to start automatically, I installed daemontools (i.e. debian server - apt-get install). However, when I start the

Re: [naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-14 Thread Iuri Sampaio
Thanks Gustaf, The script install.oacs.sh didn't setup NS starting automatically, but I won't bother debuging it for now. I'll will add one update-rc.d, to start on boot, plus an upstart script will do the job. Best wishes On 14-10-2016 05:02, Gustaf Neumann wrote: Dear Iu

Re: [naviserver-devel] Logpartialtimes seemingly giving runtime of *previous* request

2016-11-02 Thread Iuri Sampaio
Yes! Unless, you're somehow stuck on 4.99.11, try NS 4.99.12. If the issue still remains, then post here. Best wishes Iuri On 02-11-2016 13:49, David Osborne wrote: Hi, I've spotted an issue that seems to have been introduced at some point between 4.99.10 & 4.99.11 (and st

[naviserver-devel] NaviServer is not listening on port 8080

2017-03-10 Thread Iuri Sampaio
After upgrading NS to 4.99.15 Nginx is unable to access OACS rootdir because NS doesn't stay listening on port 8080. After booting up NS, it doens't keep listening on port 8080. For that reason NGINX unable to complete requests, its attempt to conect gets refused. /usr/local/ns/bin/nsd -u evex

Re: [naviserver-devel] NaviServer is not listening on port 8080

2017-03-11 Thread Iuri Sampaio
Thanks Gustaf, It's a practice to use another config file, instead of nsadmin defaults. Usually I copy config-5.9.tcl to a new config file called .tcl. That file was from a previous release. Best wishes, Iuri On 11-03-2017 03:28, Gustaf Neumann wrote: > Dear Iuri, > > Do you

[naviserver-devel] Substitute for ns_htmlencode

2017-03-31 Thread Iuri Sampaio
tion-procs. grep -R "ns_htmlencode" packages/ packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl: return "$proc" grep: packages/videos/www/.#create-tag.tcl: No such file or directory What would be the substitute for htmlencode in the scenario? Best wishes, Iuri

Re: [naviserver-devel] Substitute for ns_htmlencode

2017-04-01 Thread Iuri Sampaio
HTML link to the documentation for the proc. @author Lars Pind (l...@pinds.com) @creation-date 14 July 2000 } { --return "$proc" ++return "$proc" } Best wishes, Iuri On 01-04-2017 09:03, Gustaf Neumann wrote: > Am 01.04.17 um 04:56 schrieb Iuri

[naviserver-devel] ns_http request results HTTP0

2017-04-01 Thread Iuri Sampaio
... [01/Apr/2017:18:50:19][7717.b476ab70][-conn:evex:0-] Notice: http0 [ Best wishes, Iuri -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slas

[naviserver-devel] Install NS on Debian

2018-04-01 Thread Iuri Sampaio
modload: failed to load module '/usr/local/ns/lib/thread2.8.2/libthread2.8.2.so' Best wishes, Iuri-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.

Re: [naviserver-devel] Install NS on Debian

2018-04-01 Thread Iuri Sampaio
tml> Best wishes, Iuri > On Apr 1, 2018, at 23:43, Iuri Sampaio wrote: > > Hi there, > > > In attempt to upgrade Naviserver to v.4.99.16 I’ve got the following error, > running the current installation script install-ns.sh, available at GIT > repository ht

Re: [naviserver-devel] Install NS on Debian

2018-04-02 Thread Iuri Sampaio
/github.com/gustafn/install-ns.git >> <https://github.com/gustafn/install-ns.git> Before, installing Naviserver, I ran apt-get update and apt-get upgrade. Afterwards, If there were URLs pointed pointing to old version of the modules, they were downloaded automatically. The box I

[naviserver-devel] nsldap: Installation and setup

2018-05-09 Thread Iuri Sampaio
nable into my current Naviserver installation (i.e. generating .so file in the proper location and so on). Do I need to recompile NS? Re-Installing it from scratch? Where should I place nsldap source files? The information is not available on README.tx

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-12 Thread Iuri Sampaio
Btw, how would I generate .o and .so from .c? May I use gcc? What are the necessary parameters ? (if needed) i.e. gcc -g -O -c hello.c -fPIC -DPIC -o .libs/hello.o Best wishes, Iuri > On May 12, 2018, at 13:05, Iuri Sampaio wrote: > > Thanks Gustaf, > > Yes, it helped

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-12 Thread Iuri Sampaio
libldap2-dev libssl-dev Best wishes, Iuri > On May 12, 2018, at 06:16, Gustaf Neumann wrote: > > On 10.05.18 04:01, Iuri Sampaio wrote: >> Hi there, >> >> In attempt to to install and setup nsldap, I have changed install-ns.sh >> script to look to HEAD

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-13 Thread Iuri Sampaio
Btw, Is there any reason to .o and .so be missing on bitbucket repository (i.e. https://bitbucket.org/naviserver/nsldap/src/default/ <https://bitbucket.org/naviserver/nsldap/src/default/> ) ? If not, do upload them there, please! Best wishes, I > On May 13, 2018, at 13:30, Iur

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-13 Thread Iuri Sampaio
ort of scenarios (without source forge repository), I was wondering a way out to compile nsldap.c, generating .o and .so myself. My apologies for asking. I’ll try to quiet myself. Best wishes, I > On May 13, 2018, at 06:29, Gustaf Neumann wrote: > > On 12.05.18 18:14, Iuri Sampai

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-14 Thread Iuri Sampaio
line: 1) ldapsearch -n -x -H ldap://ldap.litli.net -D “cn=web,dc=ldap,dc=litli,dc=net" "uid=iuri" -w # extended LDIF # # LDAPv3 # base (default) with scope subtree # filter: uid=iuri # requesting: ALL # 2) ldapsearch -x -W -D ‘cn=web,dc=ldap,dc=litli,dc=net' -b ""

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-16 Thread Iuri Sampaio
Neumann wrote: > > i am probably not the best person to ask, since we do not use here ldap. > > however, my guess is that you have most likely a configuration problem: > under "host" you specify "ldap://"; , when i look into the > source i see: >

[naviserver-devel] ns_column derivative

2018-07-06 Thread Iuri Sampaio
Hi there, What would be a derivative proc, which substitutes ns_column ? The piece of context is right bellow. Best wishes, I db_with_handle db { set trigger_column_list [list] for {set i 0} {$i < [ns_column count $db ec_custom_product_field_values]} {incr i} {

Re: [naviserver-devel] ns_column derivative

2018-07-06 Thread Iuri Sampaio
ist select_name { SELECT name FROM ec_custom_product_field_values } ] $i] } } Too ugly! Would there be a beautiful code? Best wishes, I > On Jul 6, 2018, at 21:07, Iuri Sampaio wrote: > > Hi there, > > What would be a derivative proc, which substitutes ns

Re: [naviserver-devel] Install Error via install-ns.sh

2018-09-23 Thread Iuri Sampaio
Are you using Debian/Ubuntu? If so, you might run apt-get install gcc and related packages. Then you can run install-ns.sh again, > On Sep 22, 2018, at 13:19, THORPE MAYES via naviserver-devel > wrote: > > Hi, > > I am trying to install Naviserver using this script: > > install-ns.sh > >

[naviserver-devel] Installing NS 4.99.17 on Debian 7 Wheezy

2018-11-19 Thread Iuri Sampaio
Hi there, Has anyone got a similar error related to tclcrypto library? Right now, I’m search for the package, which could contain the source for the reference EC_curve_nist2nid, but Debian 7 is an old distro… I’m already using openssl latest version for Debian 7 Next attempt will be upgrading

Re: [naviserver-devel] Installing NS 4.99.17 on Debian 7 Wheezy

2018-11-20 Thread Iuri Sampaio
b07457846bd66 > > <https://bitbucket.org/naviserver/naviserver/commits/49c314f2b1e9410de0f61935c0bb07457846bd66> > [2] https://wiki.debian.org/LTS/ <https://wiki.debian.org/LTS/> > > > On 20.11.18 04:16, Iuri Sampaio wrote: >> Hi there, >> >> Has any

[naviserver-devel] NS_ModuleInit Error - Installation Script

2019-03-11 Thread Iuri Sampaio
Hi there, Has anyone tried to run NS 4.99.18, using the installation script available at https://github.com/gustafn/install-ns.git , in a KVM Debian 9 machine? I had ran "install-ns.sh build”, and it completed successfully. Then tried to boot up NS a

Re: [naviserver-devel] Question re nsdbi

2019-09-17 Thread Iuri Sampaio
I have no clue about the reason.Perhaps a memory licking that went away after reboot . ...Or you get "lucky" again and the error appears once more. rsrs My first guess would be if task’s using free(); or what else. how does memory get released? > On Sep 17, 2019, at 15:57, THORPE MAYES vi

[naviserver-devel] Converting a CURL call to a ns_http call

2019-11-15 Thread Iuri Sampaio
What would be the argument/switch to convert the option -u, from CURL command, to ns_http command? curl -v https://myhost.com/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "client_id:secret" \ -d "grant_type=client_cr

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-15 Thread Iuri Sampaio
losed by server (url https://api.sandbox.paypal.com/v1/oauth2/token) [15/Nov/2019:13:19:55][450.7f7a65ffb700][-conn:evex:88:31735-] Notice: status code 0 [15/Nov/2019:13:19:55][450.7f7a65ffb700][-conn:evex:88:31735-] Notice: reply [ > On Nov 15, 2019, at 12:21, Iuri Sampaio wrote: > &g

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-15 Thread Iuri Sampaio
s/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21Ajrtihjrujhirjhiojheioji5wt83qyt78y3785y7845FEWRGFERHGIEGEWGzpuO0xg_I75pmqFAoSIuArLnfQIoBPdJLdyKSgig",&q

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
a87fff700][-conn:evex:124:46273-] Notice: RETURN URL /paypal-checkout *** > On Nov 16, 2019, at 15:47, Iuri Sampaio wrote: > > Dear Gustaf, > It did help me to remind and review my own code to assure that it was > properly written. I grabbed the code from > https://n

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
tpTaskRecv: connection probably closed by server (url https://api.sandbox.paypal.com/v1/oauth2/token) [16/Nov/2019:15:46:05][450.7f7a87fff700][-conn:evex:124:46273-] Notice: RETURN URL /paypal-checkout *** > On Nov 16, 2019, at 08:58, Gustaf Neumann wrote: > > Dear Iuri, > > Le

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
k8rnGB4InaKkTbh-nvewEw3uM4llmAoRwLc9Wkh4wpkVHTQ4-ehe_F-bdgW3Z5EinJgbrmK3Eu4ffds-YPWQ","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":29668,"nonce":"2019-11-16T22:13:00Zb0kTBXRvIaKfKQ0AM3T6Q4e

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
wEw3uM4llmAoRwLc9Wkh4wpkVHTQ4-ehe_F-bdgW3Z5EinJgbrmK3Eu4ffds-YPWQ", "token_type": "Bearer", "app_id": "APP-W28fGERGERGERGERGREGE3T", "expires_in": 31623, "nonce": "2019-11-16T22:13:00Zb0kTBXRvIaKfKQ0AM3T6Q4e4RU

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
.7f8659e5b700][-main-] ^[[0m^[[0;39mNotice: Using ns_cache based on NX 2.2.0^[[0m ^[[0;32m[17/Nov/2019:12:43:03][20368.7f8659e5b700][-main-] ^[[0m^[[0;34mDebug: nsd/init.tcl: loading /usr/local/ns/tcl/cache.tcl^[[0m ^[[0;32m[17/Nov/2019:12:43:03][20368.7f8659e5b700][-main-] ^[[0m^[[0;34mDebug: nsd/init

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
bug: ssl connect on sock 28 [17/ > On Nov 17, 2019, at 13:16, Gustaf Neumann wrote: > > On 17.11.19 17:04, Iuri Sampaio wrote: >> NaviServer/4.99.17 >> >> Should I upgrade it? > yes. There are fixes for partly configured IPv6 setups in the 4.99.18 release >

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
6a4f62b700][-conn:iurix:0:44-] Debug(ns:driver): RequestFree does not call Ns_ResetRequest on 0x7f6a3c0036c8 [17/Nov/2019:13:49:55][634.7f6a4e629700][-driver:nsssl_v4:0-] Debug(ns:driver): === PollWait returned 1, trigger[0] 1 > On Nov 17, 2019, at 13:47, Iuri Sampaio wrote: > > NS

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
ver (url https://api.sandbox.paypal.com/v1/oauth2/token) Do you still get successful results ? https://iurix.com/paypal-get-token <https://iurix.com/paypal-get-token> > On Nov 17, 2019, at 13:53, Iuri Sampaio wrote: > > As indicated in the log, I’ve edited /etc/host

Re: [naviserver-devel] Naviserver 4.99.19

2020-01-08 Thread Iuri Sampaio
One can always kill a process and leave the desired one. Then, it must confirm that nsd isn't set to start on boot, as user nsadmin, at /etc/init.d/, neither systemctl is enabled. systemctl oacs-5.9.1.service disable systemctl daemon-reload Visit Automate NaviServer Startup at: http://www.project-

Re: [naviserver-devel] git clone missing recent naviserver commits?

2020-04-12 Thread Iuri Sampaio
Hi Andrew, Habr you tried the other repositories: https://downloads.sourceforge.net/sourceforge/naviserver/naviserver-${version_ns}.tar.gz https://github.com/nm-wu fi They are all used in the installation scripts written by Gustaf. https://github.com/gustafn/i

Re: [naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-24 Thread Iuri de Araujo Sampaio
Hello there! Thanks Maksym, it’s always good to double check fundamentals. I’ve followed standard’s installation, using install-ns.sh script, available on GitHub. https://github.com/gustafn/install-ns/ Plus, http-handlers-init.tcl loads properly whe

Re: [naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-24 Thread Iuri de Araujo Sampaio
penACS forum. > > On Sun, May 24, 2020 at 9:00 PM Iuri de Araujo Sampaio <mailto:i...@iurix.com>> wrote: > Hello there! > Thanks Maksym, it’s always good to double check fundamentals. > > I’ve followed standard’s installation, using install-ns.sh script, available

[naviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char?

2020-05-24 Thread Iuri de Araujo Sampaio
Hi there, It looks like [ns_base64encode] generates a wrong payload when message size contains more than 63 characters. https://tools.ietf.org/html/rfc4648#section-5 An alternative alphabet has been suggested that would use "~" as the 63rd cha

Re: [naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-25 Thread Iuri de Araujo Sampaio
Right on! Thanks Gustaf! The error was in the registration call. I had assigned the virtual OACS url as the path to the file, instead of the physical path. As you brightly described in > ns_register_tcl PUT /REST2/ /usr/local/oacs-5-10/openacs-4/www/ and regarding “unfriendly” behavior > The

Re: [naviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char?

2020-05-25 Thread Iuri de Araujo Sampaio
27;aud': 'iurix.com/REST <http://iurix.com/REST>', > 'sub': '704', 'iat': 1590365650} > > > On Sun, May 24, 2020 at 11:56 PM Maksym Zinchenko <mailto:siqsu...@gmail.com>> wrote: > sourcecode/nsd/uuencode.c maybe >

Re: [naviserver-devel] Verifying HMAC signature [ns_crypto::hmac ...]

2020-05-26 Thread Iuri de Araujo Sampaio
r-devel@lists.sourceforge.net> Iuri, The nsc_crypto::hmac performs the HMAC (Keyed-Hashing for Message Authentication) as specified in RFC 2104, using a symmetric key provided via argument. The HMAC can be verified the same way as a plain digest (without a secret): If a received HMAC (or digest

[naviserver-devel] [ns_getform] doesn't get form-data fields

2020-07-03 Thread Iuri de Araujo Sampaio
Hello there, Reading [ns_getform] documentation, I noticed it supports multipart/form-data https://naviserver.sourceforge.io/n/naviserver/files/ns_getform.html However, when I run the chunk bellow, it shows no form, neither f

Re: [naviserver-devel] [ns_getform] doesn't get form-data fields

2020-07-04 Thread Iuri de Araujo Sampaio
was a cache refreshing delay. Who knows? k ns_log Notice "CTree $cTree " Best wishes, I > On Jul 4, 2020, at 00:25, Iuri de Araujo Sampaio wrote: > > Hello there, > > Reading [ns_getform] documentation, I noticed it supports multipart/form-data > https

Re: [naviserver-devel] [ns_getform] doesn't get form-data fields

2020-07-04 Thread Iuri de Araujo Sampaio
r :) > > In general, it is a good idea to make test-cases with curl, also for you to > understand, what is going on in detail. > > all the best > > -gn > > On 04.07.20 18:37, Iuri de Araujo Sampaio wrote: >> Hi, >> I woke up today and Postman requests w

[naviserver-devel] Connect to a web socket in the background

2020-07-11 Thread Iuri de Araujo Sampaio
Hi there, My code's intended to open a websocket connection to the echo service, wait 400ms to ensure that the connection is really established and send a textual message, which should be echoed back by the echo service. The last part will be handling/parsing that message (i.e. TXT or JSON mes

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-12 Thread Iuri de Araujo Sampaio
quot;ad_try { $handler } ad_script_abort val { # do nothing }" invoked from within "rp_serve_concrete_file [ad_conn file]" (procedure "::nsf::procs::rp_serve_abstract_file" line 60) invoked from within "rp_serve

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-12 Thread Iuri de Araujo Sampaio
:0:9-] Notice: D proto wss host javascript.info path article/websocket/demo tail hello I’m going to continue writing this client. I don’t know if you are in the middle the implementation but I shall thank you in advance. That’s been very helpful already. Best wishes, I > On Dhuʻl-Q. 21, 1441

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-12 Thread Iuri de Araujo Sampaio
t; invoked from within "ad_try { $handler } ad_script_abort val { # do nothing }" invoked from within "rp_serve_concrete_file [ad_conn file]" > On Dhuʻl-Q. 21, 1441 AH, at 21:14, Iuri de Araujo Sampaio >

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-14 Thread Iuri de Araujo Sampaio
eumann wrote: > > On 12.07.20 02:14, Iuri de Araujo Sampaio wrote: > >> However, when I run the first version of the code, and it returns an error >> related to: Error: can't set "formMap": variable is array >> >> /usr/local/src/ns-4.9.17/tcl8.6

Re: [naviserver-devel] ns_conn auth

2020-11-21 Thread Iuri de Araujo Sampaio
Hello Maksym, One can add any custom variable (i.e. Authorization “Bearer …") in the response headers as in: … set headers [ns_set new] ns_set put $headers "Authorization" "Bearer $token" … ns_respond -status $status -type "application/json" -headers $headers -string $response ad_script_abort

Re: [naviserver-devel] ns_conn auth

2020-11-21 Thread Iuri de Araujo Sampaio
nn:qonteo:default:1:7-] Notice: site_node__node_id 219402 [21/Nov/2020:17:03:27][29540.7efbf356f700][-conn:qonteo:default:1:7-] Notice: permission_p 1 [21/Nov/2020:17:03:27][29540.7efbf356f700][-conn:qonteo:default:1:7-] Notice: permission_p 0 > On Rab. II 6, 1442 AH, at 16:27, Maksy

Re: [naviserver-devel] ns_conn auth

2020-11-21 Thread Iuri de Araujo Sampaio
There we go! ;) > On Rab. II 6, 1442 AH, at 17:05, Gustaf Neumann wrote: > > Dear Maksym, > > [ns_conn auth] handles Digest authentication (i've never used it), but > "Bearer" is not handled. > The fields in the "Authorization" request header field are not always > structured the same way,

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

2021-02-21 Thread Iuri de Araujo Sampaio
Hello there, I’m trying to rewrite a CURL request to Naviserver. curl 'https://api.twilio.com/2010-04-01/Accounts/ACe13c882f57e87c4b4db37/Messages.json' -X POST \ --data-urlencode 'To=whatsapp:+5511998865465' \ --data-urlencode 'From=whatsapp:+14155238886' \ --data-urlencode 'Body=Your Yummy Cu

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

2021-02-22 Thread Iuri de Araujo Sampaio
cation step had failure. 22/Feb/2021:16:07:21][1207.7efbb6ffd700][-conn:qonteo:default:2:1647-] Notice: RES2 status 401 time 0:203450 headers d5 body {{"code": 20003, "detail": "", "message": "Authenticate", "more_info": "https

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

2021-02-23 Thread Iuri de Araujo Sampaio
.99.19 > On Raj. 11, 1442 AH, at 16:08, Iuri de Araujo Sampaio wrote: > > So far, I've found a previous post, from myself :-), regarding quite the same > problem. > > https://www.mail-archive.com/naviserver-devel@lists.sourceforge.net/msg03818.html > > <

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

2021-02-24 Thread Iuri de Araujo Sampaio
> On Raj. 13, 1442 AH, at 00:03, Gustaf Neumann wrote: > > Dear Iuri, > > The problem, you are probably facing is probably that ns_base64encode > produces line breaks as required for MIME encoded text strings [1]. > > % ns_base64encod

[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 :