The example below does a form post, if you prefer a get method, simply ad=d the --get parameter to the example.Fro=m: Marc Thompson [marc.thompson@utah.edu]
Sent: Thursday, July 17, 2014 6:02 AM
To: talk@webdna.=us
Subject: RE: [WebDNA] Send URL Get without waiting for responseI prefer curl for situations like this.--------------------------------------------------------- This message is s=ent to you because you are subscribed to the mailing list . To unsubscribe,= E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report=ing: support@webdna.=us
[Text]Result=3D[Shell]/usr/bin/curl --data "id=3DXXXX&pw=3DXXXX&am=p;dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+a+test" http://192.123.000.000/sms.php[/Shell][/text]
Marc--=C2=A0
***********************************
Marc Thompson
Software Design Engineer III
UIT - University Support Services
University of Utah
801.5=85.9264
marc.thompson@u=tah.edu
***********************************Fro=m: Terry Nair [terrynair@prism4u.com]
Sent: Thursday, July 17, 2014 4:46 AM
To: talk@webdna.=us
Subject: [WebDNA] Send URL Get without waiting for response--------------------------------------------------------- This message is s=ent to you because you are subscribed to the mailing list . To unsubscribe,= E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report=ing: support@webdna.=usHi all,
=C2=A0
Could anyone please give me a heads up on =how to do this =E2=80=A6..
=C2=A0
Send a http url request with string value =pair to an API landing page without requiring or displaying a response from= the API. Basically, a user completes a registration form (WebDNA) and when submitting, gets to our response page (WebDNA) which dis=plays an entry box for the user to enter a One-Time-Password (OTP). On this= very same response page, a separate call is made out to the API which is a= SMS gateway provider that sends the OTP to the user=E2=80=99s mobile phone.
=C2=A0
The url to the API looks like this =E2=80==A6.
=C2=A0
=C2=A0
As you can see, the parameters are id, pw,= dnr, snr and msg. I believe that I should be using TCPConnect and TCPSend.= Also, I think I should be putting the TCPConnect tag inside a SPAWN tag so that I do not see the response or have to wait for it. Neve=r worked on TCPConnect tags before so any help crafting what the code shoul=d be for the above would be most appreciated.
=C2=A0
If I am way off base with the approach, pl=ease do let me know if there is a much simpler way to this before I start e=xperimenting with my approach. Hope I am making sense here and thanks for the assistance rendered guys n gals.
=C2=A0
Cheers Terry Nair
=C2=A0
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
|
The example below does a form post, if you prefer a get method, simply ad=d the --get parameter to the example.Fro=m: Marc Thompson [marc.thompson@utah.edu]
Sent: Thursday, July 17, 2014 6:02 AM
To: talk@webdna.=us
Subject: RE: [WebDNA] Send URL Get without waiting for responseI prefer curl for situations like this.--------------------------------------------------------- This message is s=ent to you because you are subscribed to the mailing list . To unsubscribe,= E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report=ing: support@webdna.=us
[text]Result=3D[shell]/usr/bin/curl --data "id=3DXXXX&pw=3DXXXX&am=p;dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+a+test" http://192.123.000.000/sms.php[/Shell][/text]
Marc--=C2=A0
***********************************
Marc Thompson
Software Design Engineer III
UIT - University Support Services
University of Utah
801.5=85.9264
marc.thompson@u=tah.edu
***********************************Fro=m: Terry Nair [terrynair@prism4u.com]
Sent: Thursday, July 17, 2014 4:46 AM
To: talk@webdna.=us
Subject: [WebDNA] Send URL Get without waiting for response--------------------------------------------------------- This message is s=ent to you because you are subscribed to the mailing list . To unsubscribe,= E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report=ing: support@webdna.=usHi all,
=C2=A0
Could anyone please give me a heads up on =how to do this =E2=80=A6..
=C2=A0
Send a http url request with string value =pair to an API landing page without requiring or displaying a response from= the API. Basically, a user completes a registration form (WebDNA) and when submitting, gets to our response page (WebDNA) which dis=plays an entry box for the user to enter a One-Time-Password (OTP). On this= very same response page, a separate call is made out to the API which is a= SMS gateway provider that sends the OTP to the user=E2=80=99s mobile phone.
=C2=A0
The url to the API looks like this =E2=80==A6.
=C2=A0
=C2=A0
As you can see, the parameters are id, pw,= dnr, snr and msg. I believe that I should be using TCPConnect and TCPSend.= Also, I think I should be putting the TCPConnect tag inside a SPAWN tag so that I do not see the response or have to wait for it. Neve=r worked on TCPConnect tags before so any help crafting what the code shoul=d be for the above would be most appreciated.
=C2=A0
If I am way off base with the approach, pl=ease do let me know if there is a much simpler way to this before I start e=xperimenting with my approach. Hope I am making sense here and thanks for the assistance rendered guys n gals.
=C2=A0
Cheers Terry Nair
=C2=A0
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
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...