On 17 Sep 2020, at 06:25, talk@webdna.us wrote:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usHello everyone!
Thanks in advance for any help on this topic. Anyone has experience on =how to capture a JSON payload that=E2=80=99s being sent via POST to a =..tpl with WebDNA?.
This is the post being sent:
curl -X 'POST' 'https://myhost.com/callback.tpl'; -H ='connection: close' -H 'content-length: 396' -H 'content-type: =application/json' -H 'accept: */*' -H 'host: myhost.com' =-d =$'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":"Doe",="email":"johndoe@gmail.com","phone":"999999999"},"car":{"id_model":4=057,"license":"","year":"2006","brand":"CHEVROLET","model":"COMBO =VAN","version":"1.3 DIESEL PL AB ABS MT =5P","miles":null},"quote":{"price":1210000,"price_min":590000,"price_max":=2180000},"id_transaction":11}'
I=E2=80=99ve used [JSONstore] successfully in the past, but only when my =server sends the POST and the other party replies with a JSON, but this =is the first time I=E2=80=99m receiving a payload that needs to be =saved.
[formvariables][value][/formvariables] is not working and I guess it =does not apply for this kind of data.
Thanks in advance for any help.
Best,
Cristi=C3=A1n
|
On 17 Sep 2020, at 06:25, talk@webdna.us wrote:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usHello everyone!
Thanks in advance for any help on this topic. Anyone has experience on =how to capture a JSON payload that=E2=80=99s being sent via POST to a =..tpl with WebDNA?.
This is the post being sent:
curl -X 'POST' 'https://myhost.com/callback.tpl'; -H ='connection: close' -H 'content-length: 396' -H 'content-type: =application/json' -H 'accept: */*' -H 'host: myhost.com' =-d =$'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":"Doe",="email":"johndoe@gmail.com","phone":"999999999"},"car":{"id_model":4=057,"license":"","year":"2006","brand":"CHEVROLET","model":"COMBO =VAN","version":"1.3 DIESEL PL AB ABS MT =5P","miles":null},"quote":{"price":1210000,"price_min":590000,"price_max":=2180000},"id_transaction":11}'
I=E2=80=99ve used [JSONstore] successfully in the past, but only when my =server sends the POST and the other party replies with a JSON, but this =is the first time I=E2=80=99m receiving a payload that needs to be =saved.
[formvariables][value][/formvariables] is not working and I guess it =does not apply for this kind of data.
Thanks in advance for any help.
Best,
Cristi=C3=A1n
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...