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

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111463
interpreted = N
texte = You are not way off base.. that logic sounds good to me=85 something = like below (you can take out the auth if the API doesn=92t call for it): [TCPConnect host=3D[host]&ssl=3DT&port=3D443][!] [/!][TCPSend]GET = /sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+= a+test HTTP/1.0[UnURL]%0D%0A[/UnURL][!] [/!]Authorization: Basic [Encrypt = method=3Dbase64][user]:[pass][/Encrypt][UnURL]%0D%0A[/UnURL][!] [/!]Host: [host][UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend][!] [/!][/TCPConnect] No need to use curl, although you could. Regarding spawn, sounds fine.. = just remember that information to the spawn context is limited.. see the = docs for Spawn.=20 Donovan On Jul 17, 2014, at 5:46 AM, Terry Nair wrote: > Hi all, > =20 > Could anyone please give me a heads up on how to do this =85.. > =20 > 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 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=92s mobile phone. > =20 > The url to the API looks like this =85. > =20 > = http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr= =3DNTUC&msg=3DThis+is+a+test > =20 > 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 = so any help crafting what the code should be for the above would be most = appreciated. > =20 > 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. > =20 > Cheers Terry Nair > =20 > --------------------------------------------------------- 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.us 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)
You are not way off base.. that logic sounds good to me=85 something = like below (you can take out the auth if the API doesn=92t call for it): [TCPConnect host=3D[host]&ssl=3DT&port=3D443][!] [/!][tcpsend]GET = /sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+= a+test HTTP/1.0[unurl]%0D%0A[/UnURL][!] [/!]Authorization: Basic [Encrypt = method=3Dbase64][user]:[pass][/Encrypt][unurl]%0D%0A[/UnURL][!] [/!]Host: [host][unurl]%0D%0A%0D%0A[/UnURL][/TCPSend][!] [/!][/TCPConnect] No need to use curl, although you could. Regarding spawn, sounds fine.. = just remember that information to the spawn context is limited.. see the = docs for Spawn.=20 Donovan On Jul 17, 2014, at 5:46 AM, Terry Nair wrote: > Hi all, > =20 > Could anyone please give me a heads up on how to do this =85.. > =20 > 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 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=92s mobile phone. > =20 > The url to the API looks like this =85. > =20 > = http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr= =3DNTUC&msg=3DThis+is+a+test > =20 > 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 = so any help crafting what the code should be for the above would be most = appreciated. > =20 > 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. > =20 > Cheers Terry Nair > =20 > --------------------------------------------------------- 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.us Donovan Brooke

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:

RE: Help name our technology! (1997) OH MY GOD! (1998) RE: Error: template (1997) Help name our technology! (1997) variable value locked when passed to include (2001) Uh...can someone help me out with the b10? (1997) unsubscribe (1997) Email (1998) orderfile headers (was: 2nd Request for help/advice onvariable pricing) (2000) Quick Question About Sorting (1997) WebCat2b15MacPlugin - showing [math] (1997) search for all (1998) How to get shownext to just shownext once (1997) PSC recommends what date format yr 2000??? (1997) Dynamic Pop up menu? (1997) [LOOKUP] (1997) problems with 2 tags shakur (1997) Search multiple fields (1997) Dummy Form Variables Needed (2000) Emailer (1997)