[formvariables][name][/f=ormvariables]
On 25 Apr 2019, at 16:44, Michael D=avis <admin@net=work13.net> wrote:Thanks Stuart,Unfortunately, the solu=tion can't be changing the way the post is done.=C2=A0 That's the w=ay it is coming from the service that's sending it.=C2=A0 I see where a=dding a name=3Dvalue pair in your post example causes WebDNA to find the Fo=rmVariable.=C2=A0 It is possible FormVariables is ignoring any header that =doesn't have a value for name.=C2=A0 Good question for Christophe.MD---------------------------------------------------------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.us--0000000000007a954b058756d11e--. Associated Messages, from the most recent to the oldest:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usOn Apr 2=4, 2019, at 8:23 PM, Stuart Tremain <webdna@plsoftware.com.au> wrote:I tested this on= a linux server:[SHELL]curl -k POST https://plsoftware.com.au/te=st.html -d userinfo=3D'{"userName":"dim@witted.net","password=":"mybirthday=E2=80=9D}'[/SHELL]Res=ult:However, this may be a =better solution for you as you will not have to parse the JSON:[SHELL]curl -k POST https://plsoftware.com.au/test.html -d username=3Ddim@witt=ed.net -d password=3Dmybirthday [/SHELL]on th=e test.html page:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usFormVariables<br>[FormVariables name=3D&exact=3DF][name] =3D [value]<br>[/FormVariables]Note that I have de=clared each variable =C2=A0as a separate -dThe -k= means for curl to ignore ssl errors.Make sure th=at your=C2=A0h=ttp://localhost/json_auth.dna=C2=A0is able to deal with the WebDNA.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usOn 25 Apr 2019, at 02:28, Michael D=avis <admin@net=work13.net> wrote:Stuart,
To avoid any browser specific issues, I'=;m writing the [FormVariables] output to a file and then opening the file w=ith a text editor.
[WriteFile file=3D[cart].txt][FormVariables][nam=e] =3D [value]
[/FormVariables][/WriteFile]
MD
April 2=3, 2019 11:04 PM, "Stuart Tremain" <webdna@plsoftware.com.au> wrote:
Ha=ve you have a look at the source code of the resulting page ?Sometimes, depending on the browser, it does not display on the rendered= page.
On 24 Apr 2019, at 15:55, Michae=l Davis <admin@network13.net> wrote:<=/div>---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usStuart,
Sorry, that was a typo/mistake on my part. I was using [For=mVariables], not [ListVariables]. Nothing in the results. I've tested o=n FCGI and Server versions.
MD
April 23, 2019 6:44 PM=, "Stuart Tremain" <webdna@plsoftware.com.a=u> wrote:<=/div> --------------------------------------------------------- This messag=e is sent to you because you are subscribed to the mailing list talk@w=ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us= archives: http://www.webdna.us/page.dna?numero=3D=55 Bug Reporting: support@webdna.usTry--------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us[FormVariables= name=3D&exact=3DF][name] =3D [value]<br>[/FormVariab=les]ListVariables will only= list TEXT vars etc.Kind regardsStuart TremainPharoah Lane SoftwareAUSTRALIA <=span style=3D"border-collapse:separate;font-variant-ligatures:normal;font-v=ariant-numeric:normal;font-variant-alternates:normal;font-variant-east-asia=n:normal;line-height:normal;border-spacing:0px">webdna@plsoftware.com.auOn 24 Apr 2019, at 11=:03, Michael Davis <admin@network13.net&=gt; wrote:---------------------------=------------------------------ This message is sent to you because you are =subscribed to the mailing list talk@webdna.us To= unsubscribe, E-mail to: talk-leave@webdna.us<=/a> archives: http://www.webdna.=us/page.dna?numero=3D55 Bug Reporting: suppor=t@webdna.usHi All,I'm trying to receive JSON via a p=ost and not seeing anything in form variables or mime headers. As a test, I= post using curl like so:curl -X POST -H "Content-Typ=e: application/json" -d '{"userName":"dim@witted.net","password":"mybirthday&=quot;}' http://localhost/json_auth.dna<=/a>On the receiving WebDNA= template:[ListVariables][name]=3D[value][/ListVariables][ListMIMEHeaders][name]=3D[value][/List=MIMEHeaders]I get a list of the usual MIME H=eaders, none include the JSON. LIstVariables returns nothing.=div>------------------------------=--------------------------- This message is sent to you because you are sub=scribed to the mailing list talk@webdna.us To un=subscribe, E-mail to: talk-leave@webdna.us= archives: http://www.webdna.us/=page.dna?numero=3D55 Bug Reporting: support@w=ebdna.usAny way to see this data in WebDNA?=MD
2182--0000000000007a954b058756d11eContent-Type: text/plain; charset="UTF-8"Content-Transfer-Encoding: quoted-printableMichael,Hi, I have code where a Stripe webhook is posting JSON to a template. Igrab the incoming JSON using:[formvariables][name][/formvariables]It should be that straight forward unless something else on your server ismessing things up / blocking things before the post data gets to WebDNA.- TomOn Thu, 25 Apr 2019 at 09:23, Stuart Tremain
- Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST (Michael Davis
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST (Michael Davis
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST (Tom Duke
2019) - Re: [WebDNA] Receive JSON POST (Tom Duke
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST (Tom Duke
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST (Michael Davis
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST ("Michael Davis"
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - Re: [WebDNA] Receive JSON POST ("Michael Davis"
2019) - Re: [WebDNA] Receive JSON POST (Stuart Tremain
2019) - [WebDNA] Receive JSON POST (Michael Davis
2019) wrote:> OK, now I understand that you are wanting to respond to a request, you ar=e> not making AND responding to the request.>> I have done this using xml, but I think that you may need to refer this> JSON request to Christophe.>> Kind regards>> Stuart Tremain> Pharoah Lane Software> AUSTRALIA> webdna@plsoftware.com.au>>>>>>>> On 25 Apr 2019, at 16:44, Michael Davis wrote:>> Thanks Stuart,>> Unfortunately, the solution can't be changing the way the post is done.> That's the way it is coming from the service that's sending it. I see> where adding a name=3Dvalue pair in your post example causes WebDNA to fi=nd> the FormVariable. It is possible FormVariables is ignoring any header th=at> doesn't have a value for name. Good question for Christophe.>> MD>> On Apr 24, 2019, at 8:23 PM, Stuart Tremain > wrote:>> I tested this on a linux server:>> [shell]curl -k POST https://plsoftware.com.au/test.html -d> userinfo=3D'{"userName":"dim@witted.net","password":"mybirthday=E2=80=9D}='[/SHELL]>> Result:> FormVariables> userinfo =3D {"userName":"dim@witted.net","password":"mybirthday=E2=80=9D=}>>> However, this may be a better solution for you as you will not have to> parse the JSON:>> [shell]curl -k POST https://plsoftware.com.au/test.html -d> username=3Ddim@witted.net -d password=3Dmybirthday [/SHELL]>> on the test.html page:>> FormVariables
> [FormVariables name=3D&exact=3DF][name] =3D [value]
> [/FormVariables]>> Note that I have declared each variable as a separate -d>> The -k means for curl to ignore ssl errors.>> Make sure that your http://localhost/json_auth.dna is able to deal with> the WebDNA.>>> Kind regards>> Stuart Tremain> Pharoah Lane Software> AUSTRALIA> webdna@plsoftware.com.au>>>>>>>> On 25 Apr 2019, at 02:28, Michael Daviswrote:>> Stuart,>> To avoid any browser specific issues, I'm writing the [formvariables]> output to a file and then opening the file with a text editor.>> [WriteFile file=3D[cart].txt][formvariables][name] =3D [value]> [/FormVariables][/WriteFile]>>> MD>> April 23, 2019 11:04 PM, "Stuart Tremain" >> wrote:>> Have you have a look at the source code of the resulting page ?> Sometimes, depending on the browser, it does not display on the rendered> page.> Kind regards> Stuart Tremain> Pharoah Lane Software> AUSTRALIA> webdna@plsoftware.com.au>>>> On 24 Apr 2019, at 15:55, Michael Davis wrote:> Stuart,>> Sorry, that was a typo/mistake on my part. I was using [formvariables],> not [listvariables]. Nothing in the results. I've tested on FCGI and Serv=er> versions.>>> MD>>> April 23, 2019 6:44 PM, "Stuart Tremain" >> wrote:>> Try> [FormVariables name=3D&exact=3DF][name] =3D [value]
> [/FormVariables]> ListVariables will only list TEXT vars etc.> Kind regards> Stuart Tremain> Pharoah Lane Software> AUSTRALIA> webdna@plsoftware.com.au>> On 24 Apr 2019, at 11:03, Michael Daviswrote:> Hi All,> I'm trying to receive JSON via a post and not seeing anything in form> variables or mime headers. As a test, I post using curl like so:> curl -X POST -H "Content-Type: application/json" -d '{"userName":"> dim@witted.net","password":"mybirthday"}' http://localhost/json_auth.dna> On the receiving WebDNA template:> [listvariables][name]=3D[value]> [/ListVariables][listmimeheaders][name]=3D[value]> [/ListMIMEHeaders]> I get a list of the usual MIME Headers, none include the JSON.> LIstVariables returns nothing.> Any way to see this data in WebDNA?> MD> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s>>> --------------------------------------------------------- This message is> sent to you because you are subscribed to the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us archives:> http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u=s--0000000000007a954b058756d11eContent-Type: text/html; charset="UTF-8"Content-Transfer-Encoding: quoted-printable Michael,Hi, I have co=de where a Stripe webhook is posting JSON to a template. I grab the incomin=g JSON using:[formvariables][name][/f=ormvariables]=It should be that straight forward unless something else on your server is =messing things up / blocking things before the post data gets to WebDNA.<=/div>- TomO=n Thu, 25 Apr 2019 at 09:23, Stuart Tremain <webdna@plsoftware.com.au> wrote: OK=, now I understand that you are wanting to respond to a request, you are no=t making AND responding to the request.I have done this= using xml, but I think that you may need to refer this JSON request to Chr=istophe.On 25 Apr 2019, at 16:44, Michael D=avis <admin@net=work13.net> wrote:Thanks Stuart,Unfortunately, the solu=tion can't be changing the way the post is done.=C2=A0 That's the w=ay it is coming from the service that's sending it.=C2=A0 I see where a=dding a name=3Dvalue pair in your post example causes WebDNA to find the Fo=rmVariable.=C2=A0 It is possible FormVariables is ignoring any header that =doesn't have a value for name.=C2=A0 Good question for Christophe.MD---------------------------------------------------------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.us--0000000000007a954b058756d11e--. Tom Duke---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usOn Apr 2=4, 2019, at 8:23 PM, Stuart Tremain <webdna@plsoftware.com.au> wrote:I tested this on= a linux server:[shell]curl -k POST https://plsoftware.com.au/te=st.html -d userinfo=3D'{"userName":"dim@witted.net","password=":"mybirthday=E2=80=9D}'[/SHELL]Res=ult:However, this may be a =better solution for you as you will not have to parse the JSON:[shell]curl -k POST https://plsoftware.com.au/test.html -d username=3Ddim@witt=ed.net -d password=3Dmybirthday [/SHELL]on th=e test.html page:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usFormVariables<br>[FormVariables name=3D&exact=3DF][name] =3D [value]<br>[/FormVariables]Note that I have de=clared each variable =C2=A0as a separate -dThe -k= means for curl to ignore ssl errors.Make sure th=at your=C2=A0h=ttp://localhost/json_auth.dna=C2=A0is able to deal with the WebDNA.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usOn 25 Apr 2019, at 02:28, Michael D=avis <admin@net=work13.net> wrote:Stuart,
To avoid any browser specific issues, I'=;m writing the [formvariables] output to a file and then opening the file w=ith a text editor.
[WriteFile file=3D[cart].txt][formvariables][nam=e] =3D [value]
[/FormVariables][/WriteFile]
MD
April 2=3, 2019 11:04 PM, "Stuart Tremain" <webdna@plsoftware.com.au> wrote:
Ha=ve you have a look at the source code of the resulting page ?Sometimes, depending on the browser, it does not display on the rendered= page.
On 24 Apr 2019, at 15:55, Michae=l Davis <admin@network13.net> wrote:<=/div>---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: suppo=rt@webdna.usStuart,
Sorry, that was a typo/mistake on my part. I was using [For=mVariables], not [listvariables]. Nothing in the results. I've tested o=n FCGI and Server versions.
MD
April 23, 2019 6:44 PM=, "Stuart Tremain" <webdna@plsoftware.com.a=u> wrote:<=/div> --------------------------------------------------------- This messag=e is sent to you because you are subscribed to the mailing list talk@w=ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us= archives: http://www.webdna.us/page.dna?numero=3D=55 Bug Reporting: support@webdna.usTry--------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us[FormVariables= name=3D&exact=3DF][name] =3D [value]<br>[/FormVariab=les]ListVariables will only= list TEXT vars etc.Kind regardsStuart TremainPharoah Lane SoftwareAUSTRALIA <=span style=3D"border-collapse:separate;font-variant-ligatures:normal;font-v=ariant-numeric:normal;font-variant-alternates:normal;font-variant-east-asia=n:normal;line-height:normal;border-spacing:0px">webdna@plsoftware.com.auOn 24 Apr 2019, at 11=:03, Michael Davis <admin@network13.net&=gt; wrote:---------------------------=------------------------------ This message is sent to you because you are =subscribed to the mailing list talk@webdna.us To= unsubscribe, E-mail to: talk-leave@webdna.us<=/a> archives: http://www.webdna.=us/page.dna?numero=3D55 Bug Reporting: suppor=t@webdna.usHi All,I'm trying to receive JSON via a p=ost and not seeing anything in form variables or mime headers. As a test, I= post using curl like so:curl -X POST -H "Content-Typ=e: application/json" -d '{"userName":"dim@witted.net","password":"mybirthday&=quot;}' http://localhost/json_auth.dna<=/a>On the receiving WebDNA= template:[listvariables][name]=3D[value][/ListVariables][listmimeheaders][name]=3D[value][/List=MIMEHeaders]I get a list of the usual MIME H=eaders, none include the JSON. LIstVariables returns nothing.=div>------------------------------=--------------------------- This message is sent to you because you are sub=scribed to the mailing list talk@webdna.us To un=subscribe, E-mail to: talk-leave@webdna.us= archives: http://www.webdna.us/=page.dna?numero=3D55 Bug Reporting: support@w=ebdna.usAny way to see this data in WebDNA?=MD
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
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...
Related Readings:
Redirect and Window Size (2000) [WebDNA] CC encription (2013) [WebDNA] POST method using TCPSend (2013) WebCat2b15MacPlugin - showing [math] (1997) Strange intermittent WebDNA problems (2008) using showpage and showcart commands (1996) [append] (1997) RePost: NAT and the CART (1999) no country? (1998) Monthly Help File (1997) .html processing? (1998) [WebDNA] Good advise on [Showif] or alternative... (2012) Order not created error (never mind) (1997) [SearchString] usage (1997) WebCat2: Formulas.db question (1997) Max Record length (1997) Emailer errors (1997) Referrer field to header field conversion (1997) It gets better... posting problems + Webcat 3.0.7 available -did anyone know? (2000) Add sizes from check boxes (2002)