Re: [WebDNA] Receive JSON POST

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114558
interpreted = N
texte = 2178 ----=_RainLoop_458_231591112.1556123317 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Stuart,=0A=0ATo avoid any browser specific issues, I'm writing the [FormV= ariables] output to a file and then opening the file with a text editor. = =0A=0A[WriteFile file=3D[cart].txt][FormVariables][name] =3D [value]=0A[/= FormVariables][/WriteFile]=0AMD=0A=0AApril 23, 2019 11:04 PM, "Stuart Tre= main" )> wrote:=0AHave you have= a look at the source code of the resulting page ?=0ASometimes, depending= on the browser, it does not display on the rendered page. =0AKind regard= s =0AStuart Tremain =0APharoah Lane Software =0AAUSTRALIA =0Awebdna@plsof= tware.com.au (mailto:webdna@plsoftware.com.au) =0AOn 24 Apr 2019, at 15:5= 5, Michael Davis wrote= : =0AStuart,=0A=0ASorry, that was a typo/mistake on my part. I was using = [FormVariables], not [ListVariables]. Nothing in the results. I've tested= on FCGI and Server versions.=0AMD=0AApril 23, 2019 6:44 PM, "Stuart Trem= ain" wrote:=0ATry=0A[For= mVariables name=3D&exact=3DF][name] =3D [value]
=0A[/FormVariables] = =0AListVariables will only list TEXT vars etc. =0AKind regards =0AStuart = Tremain =0APharoah Lane Software =0AAUSTRALIA =0Awebdna@plsoftware.com.au= (mailto:webdna@plsoftware.com.au) =0AOn 24 Apr 2019, at 11:03, Michael D= avis wrote: =0A Hi All= ,=0AI'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: =0Acurl= -X POST -H "Content-Type: application/json" -d '{"userName":"dim@witted.= net (mailto:dim@witted.net)","password":"mybirthday"}' http://localhost/j= son_auth.dna (http://localhost/json_auth.dna) =0AOn the receiving WebDNA = template: =0A[ListVariables][name]=3D[value] =0A[/ListVariables][ListMIME= Headers][name]=3D[value] =0A[/ListMIMEHeaders] =0AI get a list of the us= ual MIME Headers, none include the JSON. LIstVariables returns nothing. = =0AAny way to see this data in WebDNA? =0AMD =0A ------------------------= --------------------------------- This message is sent to you because you= are subscribed to the mailing list talk@webdna.us (mailto:talk@webdna.us= ) To unsubscribe, E-mail to: talk-leave@webdna.us (mailto:talk-leave@webd= na.us) archives: http://www.webdna.us/page.dna?numero=3D55 (http://www.we= bdna.us/page.dna?numero=3D55) Bug Reporting: support@webdna.us (mailto:su= pport@webdna.us) ----------------------------------------------------= ----- This message is sent to you because you are subscribed to the maili= ng list talk@webdna.us (mailto:talk@webdna.us) To unsubscribe, E-mail to:= talk-leave@webdna.us (mailto:talk-leave@webdna.us) archives: http://www.= webdna.us/page.dna?numero=3D55 (http://www.webdna.us/page.dna?numero=3D55= ) Bug Reporting: support@webdna.us (mailto:support@webdna.us) =0A=0A ---= ------------------------------------------------------ This message is se= nt to you because you are subscribed to the mailing list talk@webdna.us (= mailto:talk@webdna.us) To unsubscribe, E-mail to: talk-leave@webdna.us (m= ailto:talk-leave@webdna.us) archives: http://www.webdna.us/page.dna?numer= o=3D55 (http://www.webdna.us/page.dna?numero=3D55) Bug Reporting: support= @webdna.us (mailto:support@webdna.us) -------------------------------= -------------------------- This message is sent to you because you are su= bscribed to the mailing list talk@webdna.us (mailto:talk@webdna.us) To un= subscribe, E-mail to: talk-leave@webdna.us (mailto:talk-leave@webdna.us) = archives: http://www.webdna.us/page.dna?numero=3D55 (http://www.webdna.us= /page.dna?numero=3D55) Bug Reporting: support@webdna.us (mailto:support@w= ebdna.us) ----=_RainLoop_458_231591112.1556123317 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
S= tuart,

To avoid any browser specific issues, I'm writing the [Form= Variables] 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" <webdna@plsoftware.com.au> 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



On 24 Apr = 2019, at 15:55, Michael Davis <admin@network13.net> wrote:
Stuart,

Sorry, tha= t was a typo/mistake on my part. I was using [FormVariables], not [ListVa= riables]. Nothing in the results. I've tested on FCGI and Server versions= ..


MD


April 23, 2019 6:44 PM, "Stuart Tremain" <<= a target=3D"_blank" tabindex=3D"-1" rel=3D"external nofollow noopener nor= eferrer" href=3D"mailto:webdna@plsoftware.com.au?to=3D%22Stuart%20Tremain= %22%20%3Cwebdna@plsoftware.com.au%3E">webdna@plsoftware.com.au> wr= ote:
Try
=
[FormVariables name=3D&exact=3DF][name] =3D [value]<br>
[/FormVariables]
= ListVariables will only list TEXT vars etc.
=
=
Kind regar= ds
Stuart Tremain
Pharoah Lane Software
AUSTRALIA
On 24 Apr 2019, at 11:03, Michael Davis <= admin@network13.net>= wrote:
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 '{"user= Name":"dim@witted.net","pass= word":"mybirthday"}' ht= tp://localhost/json_auth.dna
On the receiving WebDNA template:
[L= istVariables][name]=3D[value]
[/ListVariables][ListMIMEHeaders= ][name]=3D[value]
[/ListMIMEHeaders]
=
I get a list of the usual MIME Headers, none include the JSON. LIstV= ariables returns nothing.
Any way to see this data= in WebDNA?
MD
=
--------------------------------------------------------- Th= is message is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscrib= e, E-mail to: talk-leave@w= ebdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: <= a rel=3D"external nofollow noopener noreferrer" target=3D"_blank" tabinde= x=3D"-1" href=3D"mailto:support@webdna.us">support@webdna.us
<= /blockquote>
----------------------------------------------= ----------- 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 Bu= g 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.us
--------------------------------------------------------= - This message is sent to you because you are subscribed to the mailing l= ist talk@webdna.us To unsubscribe, E-mail to: tal= k-leave@webdna.us archives: http://www.web= dna.us/page.dna?numero=3D55 Bug Reporting: support@webdna= ..us


<= /body> --------------------------------------------------------- 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 ----=_RainLoop_458_231591112.1556123317-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  2. Re: [WebDNA] Receive JSON POST (Michael Davis 2019)
  3. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  4. Re: [WebDNA] Receive JSON POST (Michael Davis 2019)
  5. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  6. Re: [WebDNA] Receive JSON POST (Tom Duke 2019)
  7. Re: [WebDNA] Receive JSON POST (Tom Duke 2019)
  8. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  9. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  10. Re: [WebDNA] Receive JSON POST (Tom Duke 2019)
  11. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  12. Re: [WebDNA] Receive JSON POST (Michael Davis 2019)
  13. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  14. Re: [WebDNA] Receive JSON POST ("Michael Davis" 2019)
  15. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  16. Re: [WebDNA] Receive JSON POST ("Michael Davis" 2019)
  17. Re: [WebDNA] Receive JSON POST (Stuart Tremain 2019)
  18. [WebDNA] Receive JSON POST (Michael Davis 2019)
2178 ----=_RainLoop_458_231591112.1556123317 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Stuart,=0A=0ATo avoid any browser specific issues, I'm writing the [FormV= ariables] output to a file and then opening the file with a text editor. = =0A=0A[WriteFile file=3D[cart].txt][formvariables][name] =3D [value]=0A[/= FormVariables][/WriteFile]=0AMD=0A=0AApril 23, 2019 11:04 PM, "Stuart Tre= main" )> wrote:=0AHave you have= a look at the source code of the resulting page ?=0ASometimes, depending= on the browser, it does not display on the rendered page. =0AKind regard= s =0AStuart Tremain =0APharoah Lane Software =0AAUSTRALIA =0Awebdna@plsof= tware.com.au (mailto:webdna@plsoftware.com.au) =0AOn 24 Apr 2019, at 15:5= 5, Michael Davis wrote= : =0AStuart,=0A=0ASorry, that was a typo/mistake on my part. I was using = [formvariables], not [listvariables]. Nothing in the results. I've tested= on FCGI and Server versions.=0AMD=0AApril 23, 2019 6:44 PM, "Stuart Trem= ain" wrote:=0ATry=0A[For= mVariables name=3D&exact=3DF][name] =3D [value]
=0A[/FormVariables] = =0AListVariables will only list TEXT vars etc. =0AKind regards =0AStuart = Tremain =0APharoah Lane Software =0AAUSTRALIA =0Awebdna@plsoftware.com.au= (mailto:webdna@plsoftware.com.au) =0AOn 24 Apr 2019, at 11:03, Michael D= avis wrote: =0A Hi All= ,=0AI'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: =0Acurl= -X POST -H "Content-Type: application/json" -d '{"userName":"dim@witted.= net (mailto:dim@witted.net)","password":"mybirthday"}' http://localhost/j= son_auth.dna (http://localhost/json_auth.dna) =0AOn the receiving WebDNA = template: =0A[listvariables][name]=3D[value] =0A[/ListVariables][ListMIME= Headers][name]=3D[value] =0A[/ListMIMEHeaders] =0AI get a list of the us= ual MIME Headers, none include the JSON. LIstVariables returns nothing. = =0AAny way to see this data in WebDNA? =0AMD =0A ------------------------= --------------------------------- This message is sent to you because you= are subscribed to the mailing list talk@webdna.us (mailto:talk@webdna.us= ) To unsubscribe, E-mail to: talk-leave@webdna.us (mailto:talk-leave@webd= na.us) archives: http://www.webdna.us/page.dna?numero=3D55 (http://www.we= bdna.us/page.dna?numero=3D55) Bug Reporting: support@webdna.us (mailto:su= pport@webdna.us) ----------------------------------------------------= ----- This message is sent to you because you are subscribed to the maili= ng list talk@webdna.us (mailto:talk@webdna.us) To unsubscribe, E-mail to:= talk-leave@webdna.us (mailto:talk-leave@webdna.us) archives: http://www.= webdna.us/page.dna?numero=3D55 (http://www.webdna.us/page.dna?numero=3D55= ) Bug Reporting: support@webdna.us (mailto:support@webdna.us) =0A=0A ---= ------------------------------------------------------ This message is se= nt to you because you are subscribed to the mailing list talk@webdna.us (= mailto:talk@webdna.us) To unsubscribe, E-mail to: talk-leave@webdna.us (m= ailto:talk-leave@webdna.us) archives: http://www.webdna.us/page.dna?numer= o=3D55 (http://www.webdna.us/page.dna?numero=3D55) Bug Reporting: support= @webdna.us (mailto:support@webdna.us) -------------------------------= -------------------------- This message is sent to you because you are su= bscribed to the mailing list talk@webdna.us (mailto:talk@webdna.us) To un= subscribe, E-mail to: talk-leave@webdna.us (mailto:talk-leave@webdna.us) = archives: http://www.webdna.us/page.dna?numero=3D55 (http://www.webdna.us= /page.dna?numero=3D55) Bug Reporting: support@webdna.us (mailto:support@w= ebdna.us) ----=_RainLoop_458_231591112.1556123317 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
S= tuart,

To avoid any browser specific issues, I'm writing the [Form= Variables] 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" <webdna@plsoftware.com.au> 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



On 24 Apr = 2019, at 15:55, Michael Davis <admin@network13.net> wrote:
Stuart,

Sorry, tha= t was a typo/mistake on my part. I was using [formvariables], not [ListVa= riables]. Nothing in the results. I've tested on FCGI and Server versions= ..


MD


April 23, 2019 6:44 PM, "Stuart Tremain" <<= a target=3D"_blank" tabindex=3D"-1" rel=3D"external nofollow noopener nor= eferrer" href=3D"mailto:webdna@plsoftware.com.au?to=3D%22Stuart%20Tremain= %22%20%3Cwebdna@plsoftware.com.au%3E">webdna@plsoftware.com.au> wr= ote:
Try
=
[FormVariables name=3D&exact=3DF][name] =3D [value]<br>
[/FormVariables]
= ListVariables will only list TEXT vars etc.
=
=
Kind regar= ds
Stuart Tremain
Pharoah Lane Software
AUSTRALIA
On 24 Apr 2019, at 11:03, Michael Davis <= admin@network13.net>= wrote:
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 '{"user= Name":"dim@witted.net","pass= word":"mybirthday"}' ht= tp://localhost/json_auth.dna
On the receiving WebDNA template:
[L= istVariables][name]=3D[value]
[/ListVariables][ListMIMEHeaders= ][name]=3D[value]
[/ListMIMEHeaders]
=
I get a list of the usual MIME Headers, none include the JSON. LIstV= ariables returns nothing.
Any way to see this data= in WebDNA?
MD
=
--------------------------------------------------------- Th= is message is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscrib= e, E-mail to: talk-leave@w= ebdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: <= a rel=3D"external nofollow noopener noreferrer" target=3D"_blank" tabinde= x=3D"-1" href=3D"mailto:support@webdna.us">support@webdna.us
<= /blockquote>
----------------------------------------------= ----------- 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 Bu= g 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.us
--------------------------------------------------------= - This message is sent to you because you are subscribed to the mailing l= ist talk@webdna.us To unsubscribe, E-mail to: tal= k-leave@webdna.us archives: http://www.web= dna.us/page.dna?numero=3D55 Bug Reporting: support@webdna= ..us


<= /body> --------------------------------------------------------- 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 ----=_RainLoop_458_231591112.1556123317-- . "Michael Davis"

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:

Help--WebCat setup (2000) stumped (2001) WebCatalog2 Feature Feedback (1996) Pull Down Search (2000) (2000) Problem displaying search result (1997) Search a date field by month only... (1999) Electronic Delivery (1997) Type 2 errors with WebCatalog.acgi (1997) Navigator 4.01 (1997) Text data with spaces in them... (1997) Multiple Ad databases? (1997) Bug Report, maybe (1997) Generating Report Totals (1997) Frustration with formulas.db (1999) SSL and Webstar 3 with Webcatalog (1998) Emailer and encryption (1997) Ignoring [OrderFile] context (2005) Buying sans cart (1997) Only charge card when product shipped ? (1997)