[SHELL]curl -k POST
https://plsoftware.com.au/test.html -d =userinfo=3D'{"userName":"
dim@witted.net","password":"mybirthday=E2=80=9D}'[/SHELL]=div>
Result:
FormVariablesuserinfo ==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:
on =the test.html page:
FormVariables<br>
[FormVariables name=3D&exact=3DF][name] =3D =[value]<br>
[/FormVariables]
Note that I have =declared each variable as a separate -d
The -k means for curl to ignore ssl =errors.
Kind regards
Stuart Tremain
Pharoah Lane Software
AUSTRALIA
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" <
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
=
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 Server =versions.
MD
April 23, 2019 6:44 PM, "Stuart Tremain" =<
webdna@plsoftware.com.au> =wrote:
Try
[FormVariables name=3D&exact=3DF][name] ==3D [value]<br>
[/FormVariables]
ListVariables will only list TEXT vars etc.
Kind regards
Stuart Tremain
Pharoah Lane =Software
AUSTRALIA
=
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:
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.us
=--------------------------------------------------------- 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 =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 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 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
=---------------------------------------------------------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--Apple-Mail=_0F51008E-FFE2-4EDE-8FF7-DECA848B1781--.
Associated Messages, from the most recent to the oldest:
2179--Apple-Mail=_0F51008E-FFE2-4EDE-8FF7-DECA848B1781Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=utf-8I 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:FormVariablesuserinfo =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 -dThe -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 regardsStuart TremainPharoah Lane SoftwareAUSTRALIAwebdna@plsoftware.com.au> On 25 Apr 2019, at 02:28, Michael Davis wrote:>=20> Stuart,>=20> To avoid any browser specific issues, I'm writing the [formvariables] =output to a file and then opening the file with a text editor.=20>=20> [WriteFile file=3D[cart].txt][formvariables][name] =3D [value]> [/FormVariables][/WriteFile]>=20>=20> MD>=20> 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 >=20>=20>=20>> On 24 Apr 2019, at 15:55, Michael Davis > wrote:>> Stuart,>>=20>> 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 Server versions.>>=20>>=20>> MD>>=20>>=20>> 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 Davis > 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 ='{"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.us =------------------------------------------------=--------- 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 >>=20>> --------------------------------------------------------- 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 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 >=20> --------------------------------------------------------- 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--Apple-Mail=_0F51008E-FFE2-4EDE-8FF7-DECA848B1781Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=utf-8I =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]=div>
Result:
FormVariablesuserinfo ==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:
on =the test.html page:
FormVariables<br>
[FormVariables name=3D&exact=3DF][name] =3D =[value]<br>
[/FormVariables]
Note that I have =declared each variable as a separate -d
The -k means for curl to ignore ssl =errors.
Kind regards
Stuart Tremain
Pharoah Lane Software
AUSTRALIA
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" <
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
=
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 Server =versions.
MD
April 23, 2019 6:44 PM, "Stuart Tremain" =<
webdna@plsoftware.com.au> =wrote:
Try
[FormVariables name=3D&exact=3DF][name] ==3D [value]<br>
[/FormVariables]
ListVariables will only list TEXT vars etc.
Kind regards
Stuart Tremain
Pharoah Lane =Software
AUSTRALIA
=
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:
On the =receiving WebDNA template:
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.us
=--------------------------------------------------------- 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 =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 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 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
=---------------------------------------------------------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--Apple-Mail=_0F51008E-FFE2-4EDE-8FF7-DECA848B1781--.
Stuart Tremain
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:
WebCat2: multiple currency support (1997)
can't find the pdf (1999)
List Address Changed! (1998)
WebCat for mass emailings (1997)
WebCatalog for guestbook ? (1997)
Multiple serial numbers (1997)
RE: Can't get appendfile to work (1997)
Summing fields (1997)
embedded showif statements (Ooops) (2000)
Nav. 4 probs with cart (1997)
Looking for WebDNA 3.08 MAC (2003)
Interfacing WebMerchant to www.fedex.com (1997)
WebCatalog Hosting (1996)
[WebDNA] Off topic: ImageMagick (2008)
WebCat 4.0x database losing data? (2003)
Append..... doesn't (2000)
WebCat2: Items xx to xx shown, etc. (1997)
Execute Applescript (1997)
More about BIAP W*API.... (1998)
FTP and [shell] (2003)