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

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111461
interpreted = N
texte = --047d7b33d1645362f504fe636945 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Second vote for curl here. Man curl: http://curl.haxx.se/docs/manual.html -Dan Strong http://DanStrong.com On Thu, Jul 17, 2014 at 5:12 AM, Marc Thompson wrote: > The example below does a form post, if you prefer a get method, simply > add the --get parameter to the example. > ------------------------------ > *From:* 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 response > > I prefer curl for situations like this. > [Text]Result=3D[Shell]/usr/bin/curl --data > "id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+a+test" > 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] > *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 =E2=80=A6.. > > > > 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 use= r > completes 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 out to the API which is a SMS gateway provider that sends the OTP > to the user=E2=80=99s mobile phone. > > > > The url to the API looks like this =E2=80=A6. > > > > *http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&s= nr=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 > putting the TCPConnect tag inside a SPAWN tag so that I do not see the > response or have to wait for it. Never worked on TCPConnect tags before s= o > any help crafting 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. > Hope I am making sense here and thanks for the assistance rendered guys n > gals. > > > > Cheers Terry Nair > > > --------------------------------------------------------- This message i= s > sent 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 Reporting: support@webdna.u= s > --------------------------------------------------------- This message > is sent 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 Reporting: support@webdna.u= s > --------------------------------------------------------- This message > is sent 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 Reporting: support@webdna.u= s > --047d7b33d1645362f504fe636945 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Second vote for curl here. Man curl:
http://curl.haxx.se/docs/manual.html

-Dan Strong


On Thu, Jul 17, 2014 at 5:12 AM, Marc Th= ompson <marc.thompson@utah.edu> wrote:
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 response

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" 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

Hi 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

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

=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 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
--------------------------------------------------------- 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
--------------------------------------------------------- This message is sent 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 Reporting: suppo= rt@webdna.us

--047d7b33d1645362f504fe636945-- 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)
  5. [WebDNA] Send URL Get without waiting for response ("Terry Nair" 2014)
--047d7b33d1645362f504fe636945 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Second vote for curl here. Man curl: http://curl.haxx.se/docs/manual.html -Dan Strong http://DanStrong.com On Thu, Jul 17, 2014 at 5:12 AM, Marc Thompson wrote: > The example below does a form post, if you prefer a get method, simply > add the --get parameter to the example. > ------------------------------ > *From:* 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 response > > I prefer curl for situations like this. > [text]Result=3D[shell]/usr/bin/curl --data > "id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+a+test" > 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] > *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 =E2=80=A6.. > > > > 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 use= r > completes 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 out to the API which is a SMS gateway provider that sends the OTP > to the user=E2=80=99s mobile phone. > > > > The url to the API looks like this =E2=80=A6. > > > > *http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&s= nr=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 > putting the TCPConnect tag inside a SPAWN tag so that I do not see the > response or have to wait for it. Never worked on TCPConnect tags before s= o > any help crafting 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. > Hope I am making sense here and thanks for the assistance rendered guys n > gals. > > > > Cheers Terry Nair > > > --------------------------------------------------------- This message i= s > sent 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 Reporting: support@webdna.u= s > --------------------------------------------------------- This message > is sent 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 Reporting: support@webdna.u= s > --------------------------------------------------------- This message > is sent 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 Reporting: support@webdna.u= s > --047d7b33d1645362f504fe636945 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Second vote for curl here. Man curl:

-Dan Strong


On Thu, Jul 17, 2014 at 5:12 AM, Marc Th= ompson <marc.thompson@utah.edu> wrote:
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 response

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" 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

Hi 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

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

=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 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
--------------------------------------------------------- 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
--------------------------------------------------------- This message is sent 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 Reporting: suppo= rt@webdna.us

--047d7b33d1645362f504fe636945-- Dan Strong

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:

Relevancy Rating (1998) [WebDNA] EMailer timezone bug? (2015) WebCatalog can't find database (1997) OT: Amazon Patents (2000) Sendmail Context (2003) Re:2nd WebCatalog2 Feature Request (1996) Clear command and ShoppingCart.tmpl (1997) Bug Report, maybe (1997) Search minus first found (1999) Only charge card when product shipped ? (1997) Can't Update records (1997) passing search criteria (1997) WebCat2 beta 11 - new prefs ... (1997) Database Options (1997) FORMS: Returning a specific page (1997) Foreign Chars (יאצה and so on) (1998) Founditems context returning only 1 item (1997) Help name our technology! I found it (1997) New public beta available (1997) RE: protect tag on NT (1997)