RE: [WebDNA] Send URL Get without waiting for response

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111459
interpreted = N
texte = --_000_3F494A26C768564EA5A0B49EB9E126FB54389E47XMB4xdsumailuta_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I prefer curl for situations like this. [Text]Result=3D[Shell]/usr/bin/curl --data "id=3DXXXX&pw=3DXXXX&dnr=3D%2B65= 93365219&snr=3DNTUC&msg=3DThis+is+a+test" http://192.123.000.000/sms.php[/S= hell][/text] Marc -- *********************************** Marc Thompson Software Design Engineer III UIT - University Support Services University of Utah 801.585.9264 marc.thompson@utah.edu *********************************** ________________________________ From: 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 Hi all, Could anyone please give me a heads up on how to do this =85.. Send a http url request with string value pair to an API landing page witho= ut requiring or displaying a response from the API. Basically, a user compl= etes a registration form (WebDNA) and when submitting, gets to our response= page (WebDNA) which displays an entry box for the user to enter a One-Time= -Password (OTP). On this very same response page, a separate call is made o= ut to the API which is a SMS gateway provider that sends the OTP to the use= r=92s mobile phone. The url to the API looks like this =85. http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr= =3DNTUC&msg=3DThis+is+a+test 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 puttin= g the TCPConnect tag inside a SPAWN tag so that I do not see the response o= r have to wait for it. Never worked on TCPConnect tags before so any help c= rafting what the code should be for the above would be most appreciated. If I am way off base with the approach, please do let me know if there is a= much simpler way to this before I start experimenting with my approach. Ho= pe I am making sense here and thanks for the assistance rendered guys n gal= s. Cheers Terry Nair --------------------------------------------------------- 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 Reporti= ng: support@webdna.us --_000_3F494A26C768564EA5A0B49EB9E126FB54389E47XMB4xdsumailuta_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
I prefer curl for situations like this.
[Text]Result=3D[Shell]/usr/bin/curl --data "id=3DXXXX&pw=3DXXXX&am= p;dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+a+test&q= uot; http://192.123.000.000/sms.php[/Shell][/text]

Marc
-- 
***********************************
Marc Thompson
Software Design Engineer III
UIT - University Support Services
University of Utah
801.585.9264
marc.thompson@utah.edu
***********************************

From: Terry Nair [terrynair@prism4u.com]<= br> Sent: Thursday, July 17, 2014 4:46 AM
To: talk@webdna.us
Subject: [WebDNA] Send URL Get without waiting for response

Hi all,

 

Could anyone please give me a heads up on= how to do this =85..

 

Send a http url request with string value= pair to an API landing page without requiring or displaying a response fro= m 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=92s mobile phone.

 

The url to the API looks like this =85.

 

http://192.123.000.000/sms.php?id=3DXXXX&am= p;pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is= 3;a+test

 

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.

 

If I am way off base with the approach, p= lease do let me know if there is a much simpler way to this before I start = experimenting with my approach. Hope I am making sense here and thanks for the assistance rendered guys n gals.

 

Cheers Terry Nair

 

--------------------------------------------------------- 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 Reporti= ng: support@webdna.us
--_000_3F494A26C768564EA5A0B49EB9E126FB54389E47XMB4xdsumailuta_-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Send URL Get without waiting for response (Donovan Brooke 2014)
  2. Re: [WebDNA] Send URL Get without waiting for response (Dan Strong 2014)
  3. RE: [WebDNA] Send URL Get without waiting for response (Marc Thompson 2014)
  4. RE: [WebDNA] Send URL Get without waiting for response (Marc Thompson 2014)
--_000_3F494A26C768564EA5A0B49EB9E126FB54389E47XMB4xdsumailuta_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I prefer curl for situations like this. [text]Result=3D[shell]/usr/bin/curl --data "id=3DXXXX&pw=3DXXXX&dnr=3D%2B65= 93365219&snr=3DNTUC&msg=3DThis+is+a+test" http://192.123.000.000/sms.php[/S= hell][/text] Marc -- *********************************** Marc Thompson Software Design Engineer III UIT - University Support Services University of Utah 801.585.9264 marc.thompson@utah.edu *********************************** ________________________________ From: 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 Hi all, Could anyone please give me a heads up on how to do this =85.. Send a http url request with string value pair to an API landing page witho= ut requiring or displaying a response from the API. Basically, a user compl= etes a registration form (WebDNA) and when submitting, gets to our response= page (WebDNA) which displays an entry box for the user to enter a One-Time= -Password (OTP). On this very same response page, a separate call is made o= ut to the API which is a SMS gateway provider that sends the OTP to the use= r=92s mobile phone. The url to the API looks like this =85. http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr= =3DNTUC&msg=3DThis+is+a+test 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 puttin= g the TCPConnect tag inside a SPAWN tag so that I do not see the response o= r have to wait for it. Never worked on TCPConnect tags before so any help c= rafting what the code should be for the above would be most appreciated. If I am way off base with the approach, please do let me know if there is a= much simpler way to this before I start experimenting with my approach. Ho= pe I am making sense here and thanks for the assistance rendered guys n gal= s. Cheers Terry Nair --------------------------------------------------------- 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 Reporti= ng: support@webdna.us --_000_3F494A26C768564EA5A0B49EB9E126FB54389E47XMB4xdsumailuta_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
I prefer curl for situations like this.
[text]Result=3D[shell]/usr/bin/curl --data "id=3DXXXX&pw=3DXXXX&am= p;dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+a+test&q= uot; http://192.123.000.000/sms.php[/Shell][/text]

Marc
-- 
***********************************
Marc Thompson
Software Design Engineer III
UIT - University Support Services
University of Utah
801.585.9264
marc.thompson@utah.edu
***********************************

From: Terry Nair [terrynair@prism4u.com]<= br> Sent: Thursday, July 17, 2014 4:46 AM
To: talk@webdna.us
Subject: [WebDNA] Send URL Get without waiting for response

Hi all,

 

Could anyone please give me a heads up on= how to do this =85..

 

Send a http url request with string value= pair to an API landing page without requiring or displaying a response fro= m 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=92s mobile phone.

 

The url to the API looks like this =85.

 

http://192.123.000.000/sms.php?id=3DXXXX&am= p;pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is= 3;a+test

 

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.

 

If I am way off base with the approach, p= lease do let me know if there is a much simpler way to this before I start = experimenting with my approach. Hope I am making sense here and thanks for the assistance rendered guys n gals.

 

Cheers Terry Nair

 

--------------------------------------------------------- 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 Reporti= ng: support@webdna.us
--_000_3F494A26C768564EA5A0B49EB9E126FB54389E47XMB4xdsumailuta_-- Marc Thompson

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:

First postarg not taking in $Commands (1997) Why this code works from some places and doesn't from others? (2000) I think WebDNA-Talk died ... :( (1997) WebCatalog Technical Reference (1997) Carrying over data? (1997) Signal Raised error (1997) FormVariable (1999) [format 40s]text[/format] doesn't work (1997) Am I going senile? (Price recalc based on quantity) (1997) [WebDNA] Manual install on Manjaro and MariaDB (2017) Web Developer Product Awards (1997) Using Applescript to process WebCatalog functions (1998) Replace command help (1998) Error after loading WebDNA (2004) preserving the zero's (1999) WebCat2 - storing unformatted date data? (1997) Here's an example of an applet in a tpl (1997) search comparison (2003) [WebDNA] Ubuntu 16.04 LTS & WebDNA (2017) NT vs Mac (1997)